Array Java
Array Java
====================================================
note : when you try to insert extra element in the array when your array is
completly full
or you array index is not present then it will throw array index out of bound
exception.
Example->
System.out.println(arr.length);
System.out.println("==============================");
String strArr[] = new String[3];
strArr[0]= "Shital";
strArr[1]="Mayur";
for(String y : strArr) { //for each loop
System.out.println(y);
}
for(int z :p) {
System.out.println(z);
}