Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

last element of an array

int[] array = {1,2,3};
System.out.println(array[array.length - 1]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #array
ADD COMMENT
Topic
Name
4+1 =