摘要:        
package com.kuang.array; // //Demo01 // public class ArrayDome01 { //变量的类型 变量的名字 = 变量的值; //数组类型 public static void main(String[] args) { int[] nums;//    阅读全文
posted @ 2021-09-20 22:04
Ahao丷
阅读(59)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.kuang.method; // //Demo01 // public class Demo01 { //main方法 public static void main(String[] args) { int sum = add(1, 2); System.out.print    阅读全文
posted @ 2021-09-20 17:00
Ahao丷
阅读(32)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.kuang.struct; public class TestDemo { public static void main(String[] args) { //打印三角形 五行 for (int i = 0; i <= 5; i++) { for (int j = 5; j    阅读全文
posted @ 2021-09-20 11:12
Ahao丷
阅读(34)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.kuang.struct; public class LablelDemo { public static void main(String[] args) { //打印100~150之间所有的质数 //质数是指在大于1的自然数中, 除了1和它本身以外不再有其他因数的自然数     阅读全文
posted @ 2021-09-20 11:06
Ahao丷
阅读(37)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.kuang.struct; public class BreakDemo { public static void main(String[] args) { int i = 0; while (i<100){ i++; System.out.println(i); if(i    阅读全文
posted @ 2021-09-20 11:05
Ahao丷
阅读(24)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.kuang.struct; // //Demo01 // public class ForDemo01 { public static void main(String[] args) { int a=1;//初始化条件 while (a<=100){//条件判断 Syste    阅读全文
posted @ 2021-09-20 10:31
Ahao丷
阅读(46)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.kuang.struct; // //Demo01 // public class DoWhileDemo01 { public static void main(String[] args) { int i = 0; int sum = 0; do { sum+=i; i+    阅读全文
posted @ 2021-09-20 10:00
Ahao丷
阅读(22)
评论(0)
推荐(0)
        
            
        
        
摘要:        
package com.kuang.struct; // //Demo01 // public class WhileDemo01 { public static void main(String[] args) { //输出1~100 int i =0; while (i<100){ i++; S    阅读全文
posted @ 2021-09-20 09:55
Ahao丷
阅读(30)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号