I'm dying here. I can't find out why my code isn't working. I get "illegal start of expression" in Blue J. It's on line 34 ( if((menuchoice = = 0) && (gender.equals("M"))) )
/**
* Brandon
* November 14, 2007
* TDEE
*/
import java.util.Scanner;
public class TDEE
{
public static void main(String[] args)
{
Scanner keyboardInput = new Scanner(System.in);
System.out.print("Please enter your name: ");
String name = keyboardInput.nextLine();
System.out.print("Please enter your BMR: ");
int bmr = keyboardInput.nextInt();
System.out.print("Please enter your Gender (M/F): ");
String gender = keyboardInput.next();
if((gender.equalsIgnoreCase("M") || gender.equalsIgnoreCase("F")))
{
gender = gender.toUpperCase();
System.out.println("Select your Activity Level");
System.out.println ("[0] Resting (Sleeping, Reclining)");
System.out.println("[1] Sedentary (Minimal Movement)");
System.out.println("[2] Light (Sitting, Standing)");
System.out.println("[3] Moderate (Light Manual Labor, Dancing, Riding Bike)");
System.out.println("[4] Very Active (Team Sports, Hard Manual Labor)");
System.out.println("[5] Extremely Active (Full-time Athlete, Heavy Manual Labor)");
System.out.print("\nEnter the letter corresponding to your activity level: ");
int menuchoice = keyboardInput.nextInt();
if((menuchoice = = 0) && (gender.equals("M")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 0) && (gender.equals("F")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 1) && (gender.equals("M")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 1) && (gender.equals("F")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 2) && (gender.equals("M")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 2) && (gender.equals("F")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 3) && (gender.equals("M")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 3) && (gender.equals("F")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 4) && (gender.equals("M")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 4) && (gender.equals("F")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 5) && (gender.equals("M")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else if((menuchoice = = 5) && (gender.equals("F")))
{
System.out.print(menuchoice);
System.out.println(gender);
}
else {
System.out.println("I'm sorry. You entered an invalid menu choice.");
}
}
else {
System.out.println("I'm sorry. You entered an incorrect gender.");
}
}
}