Hiding System.out.println until admin logs in
<p>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. </p>

<p>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. </p>

<ol>
<li>Register</li>
<li>Sign In</li>
<li>View Books</li>
<li>View History</li>
<li>Quit</li>
</ol>

<p>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</p>

<ol>
<li>Register</li>
<li>Sign Out</li>
<li>View Books</li>
<li>View History</li>
<li>Manager Users</li>
<li>Manage books</li>
<li>End</li>
</ol>

<p>So my problem is how to hide these 2 options or display them when an admin signs in.</p>

<p>Now I do not want anyone to do this for me, but any type of guidence would be great. </p>

<p>Thanks in advance.</p>

<p>Brandon</p>
