Search:

Type: Posts; User: ViewtifulAaron

Search: Search took 0.20 seconds.

  1. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    Well, my variable 'a' is being defined in the Menu() method, but the only valid options are 1-5, so if anything else is put into variable 'a', the freezeScreen() is called which says "That is not a...
  2. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    It's the 1st code in #13. Ok, so In the Menu Method, the user can select 1 -5, but if the user makes in invalid selection such as 6, it will say "That is an invalid selection!", then the...
  3. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    I don't know how to do that.. So I'll just restate my question again.

    So my freezeScreen(String Msg) method on line 87


    public static void freezeScreen(String Msg,)
    {
    Scanner keyboard...
  4. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    Scroll down near the end is where my question lies.



    import java.util.Scanner; //for the ability to get input from
    //the keyboard
    import java.text.DecimalFormat;

    public class...
  5. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    public static void freezeScreen(String Msg, int a)
    {
    Scanner keyboard = new Scanner(System.in);

    System.out.print(Msg);
    keyboard.nextLine();
    Menu();
    }//end freezeScreen
  6. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    Ok, thanks so much for all your help. I just have one last question. So I have everything working now, except one thing.



    import java.util.Scanner; //for the ability to get input from ...
  7. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    Yeah, the Menu method should assign a new value to 'a', but it doesn't, 'a' stays at 0 no matter what number you enter for its new value. Same problem with my 'orgGrade" variable, the originalGrade...
  8. Replies
    17
    Views
    1,154

    [SOLVED] Re: Help resolving these errors? Please!

    I tried doing that, but say I put a = 0; which a is the variable that holds the menu selection, well even when I chose a different number, 'a' still stays at 0, so how can I fix that?
  9. Replies
    17
    Views
    1,154

    [SOLVED] Help resolving these errors? Please!

    Ok, so I keep on getting the errors where it says my variable may not have been initialized. I get this error in lines 22 regarding orgGrade, 26 regarding variable 'a', 33 regarding newGrade, 37...
Results 1 to 9 of 9