0
How to use scanner concept to enter array elements of our choice at run time?
1 Resposta
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
}