public void mainmenu ()
{
title ();
System.out.println ("If you wish to exit press 5, if you want to go the intro press 2, and if you want to continue 3:");
do
{
try
{
procstr = c.readLine ();
proc = Integer.parseInt (procstr);
if (proc == 3)
askData ();
if (proc == 2)
intro ();
if (proc == 5)
goodbye ();
break;
}
catch (NumberFormatException e)
{
System.out.println ("That's not an integer. Please Try Again");
}
}
while (proc != 5 || proc != 2 || proc != 3);
}
That's what I got so far but it doesn't loop even if I input a number that isn't 5,2,3.