import java.util.Arrays;
public class A {
public int i;
public float j;
public String s;
public int[] arr;
public char c;
public static void main(String[] args) {
A a = new A();
System.out.println(a.i);
System.out.println(a.j);
System.out.println(a.s);
System.out.println(a.c);
//Arrays.toString方法用来将数组内容打印出来
System.out.println(Arrays.toString(a.arr));
}
}
|
|