Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Thread: Help with arrays

    by Norm
    Replies
    6
    Views
    1,575

    Re: Help with arrays

    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...
  2. Thread: Help with arrays

    by Norm
    Replies
    6
    Views
    1,575

    Re: Help with arrays

    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...
  3. Thread: Help with arrays

    by Norm
    Replies
    6
    Views
    1,575

    Re: Help with arrays

    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?
Results 1 to 3 of 3