One Dimension Array

 public class onedimensionalexp1 {


public static void main(String[] args) {

int arr[]={10,20,30,40,50};

for(int i=0;i<5;i++)
{
System.out.println(arr[i]);
}
}

}

Output:

10
20
30
40
50

No comments:

Post a Comment