title: Formatting, Big Decimal, interest to percent please
body: <p>Can someone please explain the usage not just answer I really would like to learn how to do this. This is my 2nd month using Java and please explain formatting usage in Java. Thank you so much. I really appreciate it. Feel free to ask any other question in regards C++ or python. I am in need of help in formatting, big decimal usage and how to set</p>
  
  <pre><code>
  import java.util.*;
  
  import java.math.BigDecimal;
  
  import java.text.NumberFormat;
  
  import java.math.*;
  
  
  public class Main{
      public static void main(String[] args)
      {
  
          Scanner myCalculation = new Scanner(System.in);
  
          System.out.print("Welcome to the Interest Calculator \n\n");
          String option = "y";
          while (option.equalsIgnoreCase("y"))
          {
  
              System.out.print("Enter Loan Amount: ");
              //double loanAmount = 520000;
              double loanAmount = myCalculation.nextDouble();
              //Get Interest rate from user
              System.out.print("Enter Interest Rate: ");
              // double interRate = .05375;
              double interRate = myCalculation.nextDouble();
  
  
              double interest = loanAmount * interRate;
  
              System.out.printf("%.3f", interest);
              System.out.println();
  
  
              //prompt user to continue? if he enter y then it will Continue
              //else it will stop
              //System.out.println("Continue? (y:n): ");
              Scanner scan = new Scanner(System.in);
              boolean stop = false;    
              while(!stop) {
              //do whatever
                  System.out.println("Would you like to continue? (yes or no)");
                  String s = scan.nextLine();
                  if(s.equals("no")) {
                      stop = true;
                  }
              }
  
          }
      }
  }
  </code></pre>