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

Python program to sum up the Salary when the Name and Age matches with subsequent rows.

Automation using selenium and python/java interview question to order a product in e commerce website.