Search:

Type: Posts; User: Freezer Boy

Search: Search took 0.23 seconds.

  1. Replies
    4
    Views
    276

    Re: Assign a value in a void method

    Okay that's what I'll do, thanks for your help!
  2. Replies
    4
    Views
    276

    Re: Assign a value in a void method

    Calling it getAverge is actually a mistake on my part, I'm so used to calling things get I didn't realize it didn't make sense here. The book actually says to call it calculateAverage, so that was...
  3. Replies
    4
    Views
    276

    Assign a value in a void method

    I'm having some trouble trying to figure out how to assign a value to a variable being passed through a method parameter. First of all here is my relevant code:


    public static void main(String[]...
  4. Replies
    3
    Views
    271

    [SOLVED] Re: File input help

    Yeah sorry, I did have code at the end of main that printed out the total number of males and females as well as their average GPA.

    Anyway thanks for the help, that got it all to work right. I...
  5. Replies
    3
    Views
    271

    [SOLVED] File input help

    So this is my first time on these forums so if this is in the wrong spot, I apologize.

    This is the input file I have:



    f 3.40
    f 4.00
    m 3.56
    m 3.80
Results 1 to 5 of 5