If you are going to count, the counter's initial value should be 0.
Your code gave all the elements in the array non zero numbers.
If you only had a single variable that you were going to use to...
Type: Posts; User: Norm
If you are going to count, the counter's initial value should be 0.
Your code gave all the elements in the array non zero numbers.
If you only had a single variable that you were going to use to...
Look at some examples of the usage of the Scanner class to read in numbers using the nextInt() method to get the input from the user.
What is the purpose of this code? Why are assigning those...
Which part are you stuck with? Can you ask a more specific question?
How to get the input from the user?
How to generate random numbers in the range from 1-8?
How to build the arrays?