0

How to use scanner concept to enter array elements of our choice at run time?

1st Aug 2016, 3:31 PM
tejaswi
1 Answer
0
I think the answer is 'in a loop' int i = 0; Scanner sc = new Scanner(System.in); while(i < arr.length){ //where arr is your array //your code with sc.next() and array initialization }
3rd Aug 2016, 11:21 AM
Lisa Kostyshina
Lisa Kostyshina - avatar