2017年10月16日

摘要: public abstract class A { private String name; public A(String name) { this.name=name; } public String getName() { return this.name; } public abstract void fu... 阅读全文
posted @ 2017-10-16 11:41 陪着鹿晗去明天 阅读(104) 评论(0) 推荐(0) 编辑

2017年10月9日

摘要: */ import java.util.Scanner; public class Z { public static void main(String[] args) { long l ; l=123456789123; System.out.println(l); }} /* 需求2:输出一个布尔类型的变量 */public class Z{public static ... 阅读全文
posted @ 2017-10-09 12:30 陪着鹿晗去明天 阅读(110) 评论(0) 推荐(0) 编辑

2017年9月25日

摘要: import java.util.Scanner; public class TingGeGe{public static void main(String[] args){long l=123456789012345l;System.out.print("长整数的的值是:"+l+"\n"); fl 阅读全文
posted @ 2017-09-25 13:00 陪着鹿晗去明天 阅读(126) 评论(0) 推荐(0) 编辑

2017年9月18日

摘要: 1.import java.util.Scanner; public class test { public static void main(String[] args) { Scanner Hy=new Scanner(System.in); double x1,x2,y1,y2; System 阅读全文
posted @ 2017-09-18 11:17 陪着鹿晗去明天 阅读(164) 评论(0) 推荐(0) 编辑

2017年9月11日

摘要: 1. 2. public class AverageSpeed{ public static void main(String[]args){ double speedkm =60/(45.5/14); double speedm = speedkm /1.6; system.out.println 阅读全文
posted @ 2017-09-11 13:40 陪着鹿晗去明天 阅读(176) 评论(0) 推荐(0) 编辑