Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

find length of array java

Int[] array = {1,2,3};
int lengthOfArray = array.length; /** Finding the length of the array and storing it */
System.out.println(String.valueOf(lengthOfArray)); /** Should print out 3, String.value Of() is optional as printLn does this automatically. */
 
PREVIOUS NEXT
Tagged: #find #length #array #java
ADD COMMENT
Topic
Name
6+3 =