摘要: /*3-2.程序员:龚猛 第三章全部例题*/ 1 package zhenshu; 2 import java.util.Scanner; 3 public class practise { 4 5 public static void main(String[] args) { 6 int number1 = (int)(Math.random... 阅读全文
posted @ 2017-10-15 20:37 So.cool 阅读(233) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class Helloworld { public static void main(String[] args) { System.out.println("请输入月份:\n"); Scanner in=new Scanner(System.in); int mo... 阅读全文
posted @ 2017-10-08 20:15 So.cool 阅读(132) 评论(0) 推荐(0) 编辑
摘要: /*程序员龚猛*/ 作业1 public class Variable_Demo$Long{ public static void main(String[]args { int i=3; long l=123456789012345; System.out.println(i); } } 阅读全文
posted @ 2017-09-25 13:20 So.cool 阅读(173) 评论(0) 推荐(0) 编辑
摘要: /*程序员龚猛,求整数各个位上的和*/ import java.util.Scanner; public class Helloworld{ public static void main(String[] args) { Scanner input=new Scanner(System.in); 阅读全文
posted @ 2017-09-18 12:42 So.cool 阅读(172) 评论(0) 推荐(0) 编辑
摘要: /*程序员龚猛*/ 1.3 public class Helloworld{ public static void main(String[] args) { System.out.println(" ]"); System.out.println(" ]"); System.out.println 阅读全文
posted @ 2017-09-07 19:11 So.cool 阅读(256) 评论(0) 推荐(0) 编辑