摘要: Java 方法的定义与调用 package cn.geekeryi;public class TestMethod { public static int loveU(String name,int num) { System.out.println("I love U!"); System.out 阅读全文
posted @ 2020-07-21 21:39 极客易先生 阅读(208) 评论(0) 推荐(0)
摘要: Java 嵌套循环之九九乘法表 package cn.geekeryi; public class JiuJiuChengFa { public static void main(String[] args) { for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++ 阅读全文
posted @ 2020-07-21 21:28 极客易先生 阅读(379) 评论(0) 推荐(0)
摘要: Java switch语句第二种用法 package cn.geekeryi; public class SwitchTest02 { public static void main(String[] args) { short month = 1; if (month==1||month==2|| 阅读全文
posted @ 2020-07-21 19:34 极客易先生 阅读(218) 评论(0) 推荐(0)
摘要: Java switch语句 package cn.geekeryi; public class SwitchTest { public static void main(String[] args) { int grade = 2; if (grade==1){ System.out.println 阅读全文
posted @ 2020-07-21 19:08 极客易先生 阅读(211) 评论(0) 推荐(0)
摘要: Java if-else if-else多选择结构代码 package cn.geekeryi; public class IfTest03 { public static void main(String[] args) { int age = (int) (100 * Math.random() 阅读全文
posted @ 2020-07-21 15:24 极客易先生 阅读(214) 评论(0) 推荐(0)