import java.util.Scanner; public class ProgramVIone { public static void main(String[] args) { double temperature; int which; boolean stop=false; Scanner input = new Scanner( System.in ); do { System.out.print("1. Fahrenheit to Celsius\n2. Celsius to Fahrenheit\n3. Exit the program\nEnter option:"); which=input.nextInt(); switch ( which ) { case 1: System.out.print("Input the temperature that you want to be converted:"); //Scanner input = new Scanner( System.in ); temperature=input.nextDouble(); System.out.print("100 degrees Celcius in Fahrenheit is: "); System.out.println(celciusToFahrenheit(100)); break; case 2: System.out.print("Enter the temperature:"); temperature=input.nextDouble(); break; case 3: stop=true; break; default: System.out.print("Invaild option, please retry."); } } while (stop==false); } }