摘要:
package a; public class A { public void add(int m) { int sum=0; for (int i = 1; i <=m; i++) { sum+=i; } System.out.println("1+2+…+"+m+"="+sum); } } pa 阅读全文
posted @ 2016-05-18 16:58
凌零聆
阅读(1560)
评论(0)
推荐(0)
摘要:
package a; public class Father { public String name; private int age; public Father(String name) { this.name=name; } public int getAge() { return age; 阅读全文
posted @ 2016-05-18 16:37
凌零聆
阅读(2069)
评论(0)
推荐(0)
摘要:
package pack1; public class A { private int i; float f; public double d; public float getF() { return f; } public void setF(float f) { this.f = f; ... 阅读全文
posted @ 2016-05-18 16:02
凌零聆
阅读(1079)
评论(0)
推荐(0)