06 2021 档案
摘要:Java方法 一、定义及调用 方法的定义模板 /* 修饰符 返回值类型 方法名(形参列表){ //方法体 return 返回值; } */ //方法的定义 public static int add(int a, int b){ return a+b; } //方法的调用 public static
阅读全文
摘要:流程控制 一、选择结构 if选择结构 if(score > 90 && score <= 100){ System.out.println("A级"); }else if(score > 80 && score <= 90){ System.out.println("B级"); }else if(s
阅读全文

浙公网安备 33010602011771号