user93796 user93796 - 1 year ago 89
Java Question

How to make a new List in Java

We create a


Set myset = new HashSet()

How do we create a
in Java?

Answer Source
List myList = new ArrayList();

or with generics

List<MyType> myList = new ArrayList<MyType>();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download