class Test3
{
public static void main(String[] args){
//printArray(new int[]{3,2,8,4});
//测试
//int[]a={1,2,3};
printArray({1,2,3});
print(12);
}
public static void printArray(int[] arr){
for(int i=0; i<arr.length; i++){
System.out.println(arr[i]);
}
}
public static void print(int i){
System.out.println(i);
}
}
|
|