Java基础(4)-数组

java数组

    public class ArrayKnowledge {

        @SuppressWarnings("unused")
        public static void main(String[] args) {
            //初始化
            String[][] a ={{"00","01"},{"10","11"}};
            System.out.println(a[1][1]);

            String [] s = new String[6];
            s[0] = "a";
            String[] b = {"a","b","c"};
            String[] c = new String[]{"a","b"};

            //数组拷贝,不足的部分为null
            String[] d =Arrays.copyOf(c, 3);
            for(String x : d){
                System.out.print(x);
            }

        }

    }
上一篇:Tensorflow timeline trace


下一篇:U帮忙U盘装系统工具使用教程