Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Transversal operation in java array

// 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] + " ");
        }
    }
}
Source by www.faceprep.in #
 
PREVIOUS NEXT
Tagged: #Transversal #operation #java #array
ADD COMMENT
Topic
Name
7+8 =