JAVA使用 1.使用子类要先初始化。data[i] = new Node(); 2.同时输出多个值。 System.out.println(data[i].x + " " + data[i].y + " " + data[i].z);