06 2021 档案

摘要:Java方法 一、定义及调用 方法的定义模板 /* 修饰符 返回值类型 方法名(形参列表){ //方法体 return 返回值; } */ //方法的定义 public static int add(int a, int b){ return a+b; } //方法的调用 public static 阅读全文
posted @ 2021-06-07 08:48 微风赋值 阅读(47) 评论(0) 推荐(0)
摘要:流程控制 一、选择结构 if选择结构 if(score > 90 && score <= 100){ System.out.println("A级"); }else if(score > 80 && score <= 90){ System.out.println("B级"); }else if(s 阅读全文
posted @ 2021-06-01 17:57 微风赋值 阅读(44) 评论(0) 推荐(0)