Write a Java statement to initialize a single dimensional array x with elements 1, 2, 3, 4 and 5.
Answers
Answered by
0
Answer:
for(int i=0;i<5;i++)
x[i]=i+1;
Similar questions