+ 1
how do i write a code that asks the user to input his months salaries and stores them in an array
10 Réponses
+ 3
use a loop using cin and an index for the Array while taking in either a fixed amount based on the iterator or parsing input for a character to exit the loop.
+ 2
to give a more defined answer a better definition of the problem would help
+ 2
are you trying to input it from an input field or from an input prompt?
+ 2
sorry I haven't taken the time to learn Java yet
+ 1
Michael I am having the same challenge, pls explain your answer better
0
how do I get user input and store it in an array. I tried using.... import java.util.Scanner ..Scanner myScan = new Scanner. put it didn't work.
0
java scanner
0
input prompt
0
OK Michael. Gordie I mean Java (scanner)
0
OK thanks