• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






jingyichenloveningning

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2023年10月19日

Struct DoWhileDemo02
摘要: package com.chen.struct; public class DoWhileDemo02 { public static void main(String[] args) { int a = 0 ; while (a<0){ System.out.println(a); a++; } 阅读全文
posted @ 2023-10-19 21:23 宁宁宁宁宁宁宁宁 阅读(21) 评论(0) 推荐(0)
 
Struct DoWhileDemo01
摘要: package com.chen.struct; public class DoWhileDemo01 { public static void main(String[] args) { int i = 0; int sum = 0; do { sum = sum + i; i++; }while 阅读全文
posted @ 2023-10-19 21:22 宁宁宁宁宁宁宁宁 阅读(14) 评论(0) 推荐(0)
 
Struct WhileDemo03
摘要: package com.chen.struct; public class WhileDemo03 { public static void main(String[] args) { //计算1+2+3...+100=? //高斯的故事 int i = 0; int sum = 0; while 阅读全文
posted @ 2023-10-19 21:22 宁宁宁宁宁宁宁宁 阅读(15) 评论(0) 推荐(0)
 
Struct WhileDemo02
摘要: package com.chen.struct; public class WhileDemo02 { public static void main(String[] args) { //死循环 while(true){ //等待客户端连接 //定时检查 //...... } }} 阅读全文
posted @ 2023-10-19 21:21 宁宁宁宁宁宁宁宁 阅读(21) 评论(0) 推荐(0)
 
Struct WhileDemo01
摘要: package com.chen.struct; public class WhileDemo01 { public static void main(String[] args) { //输出1~100 int i = 0; while (i<100){ i++; System.out.print 阅读全文
posted @ 2023-10-19 21:19 宁宁宁宁宁宁宁宁 阅读(23) 评论(0) 推荐(0)
 
Struct SwitchDemo02
摘要: package com.chen.struct; public class SwitchDemo02 { public static void main(String[] args) { String name = "种崎敦美"; //JDK7的新特性,表达式结果可以是字符串!!! //字符的本质还 阅读全文
posted @ 2023-10-19 21:19 宁宁宁宁宁宁宁宁 阅读(23) 评论(0) 推荐(0)
 
Struct SwitchDemo01
摘要: package com.chen.struct; import java.util.Scanner; public class SwitchDemo01 { public static void main(String[] args) { //case穿透 //switch 匹配一个具体的值 cha 阅读全文
posted @ 2023-10-19 21:18 宁宁宁宁宁宁宁宁 阅读(19) 评论(0) 推荐(0)
 
Struct SequenceDemo01
摘要: package com.chen.struct; public class SequenceDemo01 { public static void main(String[] args) { System.out.println("hello1"); System.out.println("hell 阅读全文
posted @ 2023-10-19 21:18 宁宁宁宁宁宁宁宁 阅读(21) 评论(0) 推荐(0)
 
Struct IfDemo03
摘要: package com.chen.struct; import java.util.Scanner; public class IfDemo03 { public static void main(String[] args) { //考试分数大于60分就是及格,小于60分就是不及格。 Scanne 阅读全文
posted @ 2023-10-19 21:17 宁宁宁宁宁宁宁宁 阅读(14) 评论(0) 推荐(0)
 
Struct IfDemo02
摘要: package com.chen.struct; import java.util.Scanner; public class IfDemo02 { public static void main(String[] args) { //考试分数大于60分就是及格,小于60分就是不及格。 Scanne 阅读全文
posted @ 2023-10-19 21:17 宁宁宁宁宁宁宁宁 阅读(20) 评论(0) 推荐(0)
 
下一页