package tutorial; import java.util.*; public class myclass { public static void main(String[] args) { String[] test = { "This", "is", "a","Java","tutorial"}; //input System.out.print("I am retrieving an element of the array:"); //just for printing System.out.print(test[1]); // printing out the 1st element(not zeroth) System.out.println(); System.out.print("It is the length of the array:"); System.out.print(test.length); // a function can be used to get //length of the array } }