Search:

Type: Posts; User: ViewtifulAaron

Search: Search took 0.36 seconds.

  1. Writing a Driver Program to interact with a Class?

    So I have a project that's due soon, and I'm really not sure where to start. Below are the requirements for my project, and I really have no idea what they mean. So if someone could please look...
  2. [SOLVED] Re: Almost have my project done, just need help with one last thing.

    Ok, thanks a lot man, I'll try that out as soon as I can and post results

    --- Update ---

    ok, so I added a loop to my Main(), and removed the other things from the Methods. So, I have it now to...
  3. [SOLVED] Re: Almost have my project done, just need help with one last thing.

    Where would that need to go into my code? In every one of the methods I wrote? Because 'a' gets is the variable that holds the selection from the Menu(), so basically 'a' starts at 0, then when the...
  4. [SOLVED] Re: Almost have my project done, just need help with one last thing.

    No error, it just ends. Like, the Menu() is called again, you enter a selection but then it just ends. It never goes back to the switch statement.

    --- Update ---

    What is a do-while loop? and...
  5. [SOLVED] Almost have my project done, just need help with one last thing.

    Ok, so my program works fine for the most part, except for a few minor issues that I absolutely have to fix. So, let me start by explaining a few things about the program. The program is suppose to...
  6. [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...
  7. [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...
  8. [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...
  9. [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...
  10. [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
  11. [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 ...
  12. [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...
  13. [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?
  14. [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...
  15. Replies
    2
    Views
    169

    Re: Need help with Methods!

    Thanks alot for the help!
  16. Replies
    2
    Views
    169

    Need help with Methods!

    Hi there, so I'm basically lost on how to get Methods to work properly. Any help you could give me is greatly appreciated! I also attached a file with the requirements to do this project, so if you...
  17. [SOLVED] Re: Problem getting a Variable Intialized.

    Ok I got it working, thanks man
  18. [SOLVED] Problem getting a Variable Intialized.

    So, every time I compile this, I get a single error on line 71 or the last part of the second If-Else statement. When I compile it, I get an error saying that my variable "bd" was not initialized.
    ...
Results 1 to 18 of 18