// A sample program for array traversal
public class Main {
public static void main(String[] args) {
int[] intArr = {2, 3, 5, 7, 11, 13, 17, 19};
System.out.println("The array elements are ");
// Print all the array elementsfor (int i = 0; i < intArr.length; i++) {
System.out.print(intArr[i] + " ");
}
}
}