Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java find last element in array

int [] numbers = {1, 2, 3, 4, 5};

firstElement = numbers[0];
lastElement = numbers[numbers.length-1];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #find #element #array
ADD COMMENT
Topic
Name
8+2 =