Search:

Type: Posts; User: pbrockway2

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    2,131

    Re: Arraylist of averages of two arrays list

    This message often indicates that you have missed a closing } brace somewhere.

    Correct - make consistent - your indentation so that every } lines up with its corresponding opening { and you should...
  2. Replies
    11
    Views
    2,131

    Re: Arraylist of averages of two arrays list

    I agree. Don't be afraid of trying something and posting back with the new code (all of it) and the compiler messages if those messages are not clear. Someone is sure to be able to explain what...
  3. Replies
    11
    Views
    2,131

    Re: Arraylist of averages of two arrays list

    The loop looks good.



    You can figure out the grade char as soon as you know the average. ie inside the loop you have just written.

    A chain of if-else if-... is OK. But the logic of what...
  4. Replies
    11
    Views
    2,131

    Re: Arraylist of averages of two arrays list

    I guess you're asking about how to figure out the averages. No, you don't need to do this manually. If you did, it would look like:



    average[0] = (testOne[0] + testTwo[0]) / 2;
    average[1] =...
Results 1 to 4 of 4