Im trying to prompt the user to pick 1 or 2 but if i pick 1 it still ask me the choice 2 questions?
import java.util.Scanner; public class Assignment9Lozano { // Open Assignment9Lozano public static void main ( String[] args) { //Open Main /***** Declare Variables *****/ int Choice, unit; double mass, height, bodyMassIndex; String name; Scanner input= new Scanner( System.in ); // Prompt User for Entry // System.out.print( " Whats is your name? "); System.out.println( "\n"); name = input.nextLine(); System.out.print("\n\n What unit system would you like to use?"); System.out.print("\n 1= SI or 2= English\n"); Choice=input.nextInt(); System.out.print("\n"); System.out.println("\n\n Choice = " + Choice); if (Choice==1) { System.out.print( " What is your mass (kg)? "); mass = input.nextDouble(); System.out.print( " What is your height (meters)? "); height = input.nextDouble(); } else if (Choice ==2); { System.out.print(" What is your mass (pounds)? "); mass = input.nextDouble(); System.out.print(" What is your height ( feet and inches)? "); height= input.nextDouble(); } // Calculating Body Mass Index bodyMassIndex = mass/ Math.pow(height,2); // Print Output to Computer Screen System.out.println("\n"); System.out.println(name + " your mass is " + mass + " kg, your height is" + height + " meters, and your BMI is" + bodyMassIndex + "."); } //end main } // Assignment9