See full Java OOP example here....

We'll add and use these helper methods for the examples:

public static void println(Object o) {
	System.out.println(o);
}

public void printArray(List list) {
	println("  " + Arrays.toString(list.toArray()));
}


Construction Examples
//Constructing simple (given) list
String[] strings = {"one", "two", "three", "four"};
List<String> list
	= new ArrayList<String>(Arrays.asList(strings));
println("Count: ");
printArray(list);

//One-Liner for simple (given) list
List<String> names
	= new ArrayList<String>(Arrays.asList("Kofi", "Asha", "Bruce", "Sally"));
println("Names: ");
printArray(names);