Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    2,117

    Re: Help with Control statements/methods!!

    The method are supposed to return a value. You use the return statement to do that.

    Reread the specifications for the determineGrade method. Yours is all wrong.
  2. Replies
    10
    Views
    2,117

    Re: Help with Control statements/methods!!

    Yes, you define the methods outside of the main method.
    No method can be defined inside of another method.
  3. Replies
    10
    Views
    2,117

    Re: Help with Control statements/methods!!

    For more info on how to use methods see the Tutorial. Go to this site and Find methods:
    Trail: Learning the Java Language: Table of Contents (The Java™ Tutorials)
  4. Replies
    10
    Views
    2,117

    Re: Help with Control statements/methods!!

    Assuming you have the arguments: arg1, arg2, ...

    You call a method: methodName(arg1, arg2, ...);

    Replace the ... with more args or remove them.

    Put that code inside of the main method.
  5. Replies
    10
    Views
    2,117

    Re: Help with Control statements/methods!!

    I'm not sure of your terminology. The "pass it to" part is confusing.
    The main method would call the two sub methods and pass them the necessary values as arguments.
  6. Replies
    10
    Views
    2,117

    Re: Help with Control statements/methods!!

    Do you have any specific questions about your assignment?
Results 1 to 6 of 6