Unable to get my menu to work...
Can someone help me? I know the problem is something simple...cause that's normally what it always is. I'm trying to write the main so that when a user chooses what they want it calls the other method defined into use, however I'm getting errors and I don't know how to fix it. Here's my main(yes there's a lot going on.):
public static void main(String args)
Scanner keyboard = new Scanner(System.in);
System.out.println("Please enter a choice:\nFB = filled box or UB = unfilled");
System.out.println("FD = filled diamond or UD = unfilled diamond");
System.out.println("FRT = filled right triangle or URT = unfilled right triangle");
System.out.println("FIT = filled isosceles triangle or UIT = unfilled isosceles triangle.");
System.out.println("Q = To Quit");
choice = keyboard.nextLine();
if(choice == FB)
else if(choice == UB)
else if(choice == FRT)
Any help would be greatly appreciated!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)