Creating an array:

// an array of strings, with 10 elements
String[] list = String[10];


Getting/setting the element of an array:

// set
list[0] = "Hello world!";