数组作为方法的形参

2021-04-04  本文已影响0人  雨景江水

一.
public class t1 {
public static void test(int[] x){
System.out.println(x[0]);
};
public static void main(String[] args) {
int [] a = new int[]{1,2,3,4};
test(a);
}
}

1

上一篇 下一篇

猜你喜欢

热点阅读