- 140
First of all sorry for posting this not in the programming forum...it seems to be dead.
Here's my problem:
// ----- Method to test for a legal menu choice
public static boolean testMenuChoice( char synMenuChoice )
{
// Allocate and prime the choice to a false state
boolean result = false;
if ( synMenuChoice = 'F')
{
result = true;
}
else
{
result = false;
}
return result;
}
------------------------------------
incompatible types
found : char
required: boolean
if ( synMenuChoice = 'F')
^
1 error
I am not certain why this is not working? can anybody help?
Thanks in advance!
-Spets
Here's my problem:
// ----- Method to test for a legal menu choice
public static boolean testMenuChoice( char synMenuChoice )
{
// Allocate and prime the choice to a false state
boolean result = false;
if ( synMenuChoice = 'F')
{
result = true;
}
else
{
result = false;
}
return result;
}
------------------------------------
incompatible types
found : char
required: boolean
if ( synMenuChoice = 'F')
^
1 error
I am not certain why this is not working? can anybody help?
Thanks in advance!
-Spets