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...
Type: Posts; User: ViewtifulAaron
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...
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...
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...
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...
public static void freezeScreen(String Msg, int a)
{
Scanner keyboard = new Scanner(System.in);
System.out.print(Msg);
keyboard.nextLine();
Menu();
}//end freezeScreen
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 ...
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...
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?
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...