1Int[] array = {1,2,3};
2int lengthOfArray = array.length; /** Finding the length of the array and storing it */
3System.out.println(String.valueOf(lengthOfArray)); /** Should print out 3, String.value Of() is optional as printLn does this automatically. */
1Int[] array={"abc", "efgh"; "ijkl";}
2int lenghtOfArray = arry.length
3System.out.println(String.ValueOf(lengthOfArray));