0
Please explain how get user input of an array in JAVA
Input for 1 dimensional and 2 dimensional arrays
1 Answer
0
Use a loop for 1D array, and handle the input in the loop.
For 2D, use nested for loop and handle the input in the loop.
Input for 1 dimensional and 2 dimensional arrays