Been doing this one and totally miffed with this even a tutor looked and could not see error the problem line indicates ")" expected and highlights the line i have made bold, perhaps another set of eyes can find the problem.
//this program decides amount of calories to a daily activity and weight
import java.util.Scanner; public class calories1 { public static void main (String [] args) { Scanner input = new Scanner (System.in); // delcaring variables double weight; String activityFactor; // program is now going to request input from user System.out.println("please enter your weight in Kilograms: "); weight = input.nextDouble(); System.out.println("Please enter if your lifestyle is active or inactive (a/i)"); activityFactor = input.next(); // program will calculate dependant on activity using if and else and or || if (activityFactor.equals ("a") || activityFactor.equals ("A")) [B] System.out.println("your recommended calorie intake is " + (weight x 30)); [/B] else if (activityFactor.equals ("i") || activityFactor.equals ("I")) System.out.println("your recommended calorie intake is " + (weight x 20)); else System.out.println("invalid input"); System.out.println("GOODBYE"); } }