You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

collections in Java
import java.util.ArrayList;
... 
ArrayList<String> al = new ArrayList<String>();
al.add("a");
al.add("b");
al.add("c");
System.out.println(al);
Collections in Python
aList = []
aList.append("a");
aList.append("b");
aList.append("c");
print aList;
  • No labels