📜  列出 java 初始化 - Java 代码示例

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

代码示例2
ArrayList list=new ArrayList();//Creating arraylist    
      list.add("Mango");//Adding object in arraylist    
      list.add("Apple");    
      list.add("Banana");    
      list.add("Grapes");    
      //Printing the arraylist object   
      System.out.println(list);