Search:

Type: Posts; User: Tjstretch

Search: Search took 0.25 seconds.

  1. Replies
    7
    Views
    2,000

    Re: Arrays/Looping probelm?

    Ok the size() method is on objects only, if you were using a regular array you would nee to use the variable length, like:


    /*
    * PRECONDITION: array is a regular array that is not null
    */...
  2. Replies
    7
    Views
    2,000

    Re: Arrays/Looping probelm?

    You could use an ArrayList with a scanner, but I'm not sure what you mean by with an Array?

    Example of using a scanner


    /*
    * Precondition: END_VAR is a int that is initialized
    */
    Scanner...
  3. Replies
    7
    Views
    2,000

    Re: Arrays/Looping probelm?

    Alright, first of for your end number, 111, would it be a valid number to get the average of? Would it be unreasonable for someone to use the number 111 when calculating an average? Can you think...
Results 1 to 3 of 3