So I am a beginner to the Java world, I know some syntax and can make simple programs but that is about it. So I have an assignment which is 90% complete. Its a bookstore with the options Register - Sign in - View Books - View Purchase History. I have completed these but the one I am stuck on is the administrative capabilites.
What was asked of us was if someone signs in using the admin username then 2 more options in the menu should become visible. So as it stands it would be pretty much like this.
- Register
- Sign In
- View Books
- View History
- Quit
In my Sign in method after the user enters in the username I figure do a If(username!="admin") "Continue as a normal user" else display original menu with the 2 new menus like so
- Register
- Sign Out
- View Books
- View History
- Manager Users
- Manage books
- End
So my problem is how to hide these 2 options or display them when an admin signs in.
Now I do not want anyone to do this for me, but any type of guidence would be great.
Thanks in advance.
Brandon