摘要: if-else的懒得写了 1 import java.util.*; 2 public class LeapYear { 3 4 public static void main(String args[]) { 5 //scan 6 Scanner scan = new Scanner(System 阅读全文
posted @ 2022-04-16 16:01 滑稽的炒饭 阅读(31) 评论(0) 推荐(0)
摘要: 1 public class IfStatement { 2 3 public static void main(String args[]) { 4 int tempNumber1, tempNumber2; 5 tempNumber1 = 5; 6 if (tempNumber1 >= 0) { 阅读全文
posted @ 2022-04-15 19:57 滑稽的炒饭 阅读(147) 评论(0) 推荐(0)
摘要: 1 public class BasicOperations{ 2 3 public static void main(String args[]) { 4 int tempFirstInt, tempSecondInt, tempResultInt; 5 double tempFirstDoubl 阅读全文
posted @ 2022-04-15 19:45 滑稽的炒饭 阅读(23) 评论(0) 推荐(0)
摘要: 跟着闵老师写点java,希望自己能坚持,如果没坚持那当我没说 1 public class HelloWorld{ 2 3 public static void main(String[] args){ 4 5 System.out.println("HelloWorld!"); 6 7 } 8 9 阅读全文
posted @ 2022-04-15 19:44 滑稽的炒饭 阅读(36) 评论(0) 推荐(0)