Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

first and last element of array java

int[] a = new int[]{1, 8, 5, 9, 4};

First Element: a[0]

Last Element: a[a.length-1]
 
PREVIOUS NEXT
Tagged: #element #array #java
ADD COMMENT
Topic
Name
9+3 =