摘要:
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 阅读全文
摘要:
package a; public class Father { public String name; private int age; public Father(String name) { this.name=name; } public int getAge() { return age; 阅读全文
摘要:
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; ... 阅读全文