You're confusing Java array with ArrayList. An ArrayList is a type of Collection backed by an array.
I don't know Python, so I'll address this only from a Java point of view.
// foo is an array of int, and contains 12 elements
int [] foo = new foo [12];
// bar is an array of int, with 7 elements.
// the initial values are specified
int [] bar = {14, 92, -42, 48, 0, 0, 13};
An element is addressed as you expect:
System.out.println (bar [2]); // prints -42
If you want to fix your example using an array, the code might look like this:
String [] wordList = {"desk", "monitor"};
System.out.println (wordList[1]); // monitor
Collections are more flexible than arrays. One consideration is that an array has a fixed size, while most Collection Objects will increase their sizes as needed. Suppose an array is used, and it is discovered it is too small. To continue, a new array would have to be created, the contents of the old array would be copied into the new array, and the old array discarded.
If you wanted to fix your Java example to use an ArrayList, it might look like this, with a call to get:
ArrayList<String> wordList = new ArrayList<String>();
wordList.add("desk");
wordList.add("monitor");
return wordList.get(1);