Java progarm to Display the elements in an array individually

 public class Main {

public static void main(String[] args) {
int[] num ={1,5,6,77,88};
System.out.println(num[0]);
System.out.println(num[1]);
System.out.println(num[2]);
System.out.println(num[3]);
System.out.println(num[4]);
}
}

OUTPUT:
1
5
6
77
88

Comments

Popular posts from this blog

FIND FILES USING NOTEPAD ++

TEST-5 CSS TEST-1

Basic Linux Commands