public class Read
{
                public static void main(String s[])
                {
                                int i[]={50,60,15,-10,3,70};
                                for(int j:i)
                                {
                                                System.out.println("The Element "+j);
                                }
                }
}

JAVA Read.PNG

Advertisements