So, I was writing some code to figure out what's wrong with the code. I want to assign each mealcode a price.
Here is my code:
if ((request.contains("no beef") || request.contains("chicken")) && !(request.contains("child"))) mealcode = 1; while (mealcode == 1) cost = 1.75; else if (request.contains("beef") && !(request.contains("child"))) mealcode = 2; while (mealcode == 2) cost = 2.08; else if (request.contains("vegetarian")) mealcode = 3; while (mealcode == 3) cost = 2.14; else if ((request.conatins("child") && !(request.contains("vegetarian")))) mealcode = 4; while (mealcode == 4) cost = 0.98; else mealcode = 0;
I get quite a few errors, including "cannot find symbol" and things that are a little more vague like "else without if" even though I gave each else an if as far as I could tell.
All help appreciated, ghostheadx