摘要:
格式 阅读全文
posted @ 2022-07-28 21:43
NiceTwocu
阅读(9)
评论(0)
推荐(0)
摘要:
package com.itheima; /* 逢七过游戏 逢七过游戏规则:100以内的数字,个位数或者十位数,或者是七的倍数都要喊过 例如:14 */ public class forDemo04 { public static void main(String[] args) { int cou 阅读全文
posted @ 2022-07-28 21:42
NiceTwocu
阅读(1311)
评论(0)
推荐(0)
摘要:
package com.itheima; public class forDemo03 { public static void main(String[] args) { /* 五位数内的回文数 什么是回文数:顺着读与反着读,数字都相等的数 例如:10101 思路: 个位数等于万位数 十位数等于千 阅读全文
posted @ 2022-07-28 20:16
NiceTwocu
阅读(156)
评论(0)
推荐(0)
摘要:
package com.itheima; public class forDemo02 { public static void main(String[] args) { /* 三位数内的水仙花数 什么是水仙花数:个位数十位数百位数的立方和等于他本身 */ int count =0; for(in 阅读全文
posted @ 2022-07-28 20:05
NiceTwocu
阅读(73)
评论(0)
推荐(0)
摘要:
public class ifDemo09 { public static void main(String[] args) { int light=2; switch (light){ case 1: System.out.println("红灯停"); break; case 2: System 阅读全文
posted @ 2022-07-28 20:03
NiceTwocu
阅读(27)
评论(0)
推荐(0)
摘要:
package com.itheima; public class forDemo01 { public static void main(String[] args) { int count=0; for (int i=1;i<=5;i++) { System.out.println("打印信息" 阅读全文
posted @ 2022-07-28 20:03
NiceTwocu
阅读(15)
评论(0)
推荐(0)
摘要:
public class ifDemo08 { public static void main(String[] args) { int a=10; int b=20; int c=30; System.out.println(a>b&&a>c); System.out.println(a>b||a 阅读全文
posted @ 2022-07-28 20:02
NiceTwocu
阅读(15)
评论(0)
推荐(0)
摘要:
public class ifDemo01 { public static void main(String[] args) { boolean isgreen=true; isgreen=false; if(isgreen){ System.out.println("绿灯行"); } } } 阅读全文
posted @ 2022-07-28 20:01
NiceTwocu
阅读(18)
评论(0)
推荐(0)
摘要:
public class ifDemo07 { public static void main(String[] args) { int a=10; int b=20; int mx= a>b?a:b; System.out.println(mx); } } 阅读全文
posted @ 2022-07-28 20:01
NiceTwocu
阅读(21)
评论(0)
推荐(0)
摘要:
public class variable_test06 { public static void main(String[] args) { System.out.println(1+99); System.out.println("itheima"+1+99); System.out.print 阅读全文
posted @ 2022-07-28 20:00
NiceTwocu
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号