1.

Write a Java program to access Array Element using loop.​

Answer»

Explanation:public class Array {    public static VOID MAIN(String[] args) {        int[] array = {1, 2, 3, 4, 5};        for (int ELEMENT: array) {            System.out.println(element);        }    } } Output 1 2 3 4 5



Discussion

No Comment Found