A list and an array are fundamentally different things.
A List is a Collection , an implementation of the interface.
An array is a special data structure of a specific operating system, which can be created only through special syntax or native code.
Arrays
In Java, the array syntax is identical to the one you describe:
String[] array = new String[] { "one", "two", "three" };
Link: Java Tutorial> Arrays
Lists
The easiest way to create a list:
List<String> list = Arrays.asList("one", "two", "three");
However, the resulting list will be immutable (or at least it will not support add() or remove() ), so you can wrap the call with a call to the ArrayList constructor:
new ArrayList<String>(Arrays.asList("one", "two", "three"));
As John Skeet says, he is prettier than Guava, there you can do:
Lists.newArrayList("one", "two", "three");
Link: Java Tutorial > The List Interface , Lists (guava javadocs)
with a variable number of arguments
About this comment:
It would be nice if we could find findMiddleItem ({"one", "two", "three"});
Java varargs gives you an even better deal:
public void findMiddleItem(String ... args){
you can call this using a variable number of arguments:
findMiddleItem("one"); findMiddleItem("one", "two"); findMiddleItem("one", "two", "three");
Or with an array:
findMiddleItem(new String[]{"one", "two", "three"});
Link: Java Tutorial > Arbitrary Number of Arguments