摘要:
package if条件语句;public class Example03 { public static void main(String[] args) { int week =5; switch (week) { case 1: System.out.println("星期一"); break 阅读全文
posted @ 2020-10-14 16:30
张德明
阅读(93)
评论(0)
推荐(0)
摘要:
package if条件语句;public class Example02 { public static void main(String[] args) { int grade=75; //定义学生成绩 if(grade>80) { //满足条件grade>80 System.out.print 阅读全文
posted @ 2020-10-14 16:24
张德明
阅读(217)
评论(0)
推荐(0)
摘要:
package if条件语句;public class Example01 { private static int unm; public static void main(String[] args) { unm = 19; if(19 % 2== 0 ){ //条件,num被2整除 Syste 阅读全文
posted @ 2020-10-14 16:22
张德明
阅读(96)
评论(0)
推荐(0)
摘要:
package if条件语句;public class Example { public static void main(String[] args){ int x=5; if(x<10) { x++; } System.out.println("x="+x); }} 结果: 阅读全文
posted @ 2020-10-14 16:19
张德明
阅读(138)
评论(0)
推荐(0)
浙公网安备 33010602011771号