Your problem is due to incorrect nesting of your if/else if statements.
if (selectedOption == primeNumberChecker)
{
// snip
if(i == num)
{
System.out.println(num + " is a...
Type: Posts; User: Junky
Your problem is due to incorrect nesting of your if/else if statements.
if (selectedOption == primeNumberChecker)
{
// snip
if(i == num)
{
System.out.println(num + " is a...