📜  java 数组对象 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:08.984000             🧑  作者: Mango

代码示例2
public class MainClass
{  
    public static void main(String args[])
    {
        System.out.println("Hello, World!");
        //step1 : first create array of 10 elements that holds object addresses.
        Emp[] employees = new Emp[10];
        //step2 : now create objects in a loop.
        for(int i=0; i