I've got the basics down, I think, but I'm stuck at trying to get user input. I've been trying to use the scanner class to get the input, but I don't think I am using it correctly in this context. The program is attempting to print the average.
Asked
Active
Viewed 38 times
-6
-
You are not using the scanner after you create it. Take a look at its documentation for how to use it. https://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html – user886 Apr 14 '17 at 00:23
-
Don't link to your code, paste your (relevant) code here. Check out [ask]. – domsson Apr 14 '17 at 00:25
1 Answers
0
You have to input the data first. Try creating temporary variables to store the input values and do:
int temp1 = in.nextInt();
int temp2 = in.nextInt();
int temp3 = in.nextInt();
to input the numbers. After that, then you can call your set functions.
If this helps, please consider marking it as an answer to your question.
Thanks

Henri
- 145
- 13