title: Where to add a do while loop to have the program repeat or terminate?
body: <p>I'm new to programming, this is my first Java class.
  I've gotten a code to calculate temperature from celsius to fahrenheit and vice versa, but I cannot figure out where I should have entered a Do While loop to have the program repeat or terminate. </p>
  
  <pre><code>import java.util.Scanner;
  
  public class PracticeTemp {
      private static float f = 0, c = 0;
      private static final Scanner scan = new Scanner (System.in);
      private static int converChoice = 1;
  
      public static void main(String [] args) {
      System.out.println("Press 1 for C-&gt;F or 2 for F-&gt;C 3 to Quit");
      converChoice = scan.nextInt();
  
      if (converChoice == 1) 
          convertCtoFAndPrint();
      else if
      (converChoice == 2) 
          convertFtoCAndPrint();
      else if
      (converChoice == 3)
      System.out.println("The program will now terminate");
      System.exit(0);
  
      }
  
      public static void convertFtoCAndPrint() {
      System.out.println("Please enter degrees F");
      f = scan.nextFloat();
  
      c = (5* (f - 32)) / 9f;
  
      System.out.println(f + " degrees F is " + c + " degrees C.");
      }
  
       public static void convertCtoFAndPrint() {
      System.out.println("Please enter degrees C");
      c = scan.nextFloat();
  
      f = (9 * c + 160) / 5f;
  
      System.out.println(c + " degrees C is " + f + " degrees F.");
      }
  }
  </code></pre>