Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get last index of array in java

//grabing a last element of the array
firstNum = numbers[0];
lastNum = numbers[numbers.length-1];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #index #array #java
ADD COMMENT
Topic
Name
6+1 =