290114lyp

导航

2022年11月9日

方法的定义和调动

摘要: 修饰符 返回值类型 方法名(参数类型 参数名){ ... 方法体 ... return 返回值; } package com.jiemo.method;public class Shabi1 { //main public static void main(String[] args) { //实际 阅读全文

posted @ 2022-11-09 15:09 是芥末!日 阅读(15) 评论(0) 推荐(0) 编辑

什么是方法

摘要: package com.jiemo.method;public class Shabi1 { //main public static void main(String[] args) { // int sum= add(1,2); // System.out.println(sum); test( 阅读全文

posted @ 2022-11-09 14:32 是芥末!日 阅读(14) 评论(0) 推荐(0) 编辑

break&continue

摘要: package com.jiemo.struct;public class BreakShabi { public static void main(String[] args) { int i=0; while (i<100){ i++; System.out.println(i); if (i= 阅读全文

posted @ 2022-11-09 13:51 是芥末!日 阅读(9) 评论(0) 推荐(0) 编辑