摘要:
package com.c2;public class Ext { public static void main(String[] args) { Student s = new Student(); System.out.println(s.name); System.out.println(s.age); }}package com.c2;public class Person { int age; String name = "zhangsan"; Person() { } public Person(int a) { age = a; }}package com. 阅读全文
摘要:
总结:方法的返回值----返回的对象到底是什么?package com.a;import java.util.Scanner;//从键盘输入10个数,并输出最大值,最小值,平均值public class Zou { public static double ccc(int a[]) { int s = 0; int max = a[2]; for (int i = 0; i < a.length; i++) { if (max < a[i]) { max = a[i]; } } return max; } public static void main(String[]... 阅读全文