集册 Java实例教程 打印各种类型的数组的引用

打印各种类型的数组的引用

欢马劈雪     最近更新时间:2020-01-02 10:19:05

439
提示:您可在线编辑运行本教程的实例 - 运行实例,去试试!
打印各种类型的数组的引用

public class Main {

    public static void main(String[] args) {

        int[] x = new int[10];

        System.out.println(x);/** 来 自 时代Java - nowjava.com**/

        double[] y = new double[20];

        System.out.println(y);

        float[] z = new float[5];

        System.out.println(z);

        boolean[] b = new boolean[7];

        System.out.println(b);

    }

}