how to output the elements of an array
Setting the elements in your array. Enter String[] array = new String[] {Elem1, Elem2, Elem3} where ElemX are the individual elements you want in your array. 2. Use the standard library static method: Arrays.asList() for one dimensional arrays that you want to print as a list.