title: Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = ' '
body: <pre><code>package com.supermarket.project;
  import java.util.Scanner;
  public class Main {
      public static void main(String[] args) {
          float amountF;
          Scanner amount = new Scanner(System.in);
          System.out.printf("Please enter the amount of purchase: ");
          amountF = amount.nextFloat();
          if (amountF &gt;= 300) {
              System.out.printf("You amount of purchase is: %1.1f.%n"
                      + "You have a discount of: %1.1f * 90% = %1.1f.%n"
                      + "You can enjoy free delivery service.", amountF, amountF,
                      amountF * 0.9);
          } else {
              System.out.printf("Your amount of purchase is: %1.1f.%n"
                      + "Delivery service is available for additional $30.",
                      amountF);
          }
      }
  }
  </code></pre>
  
  <p>Then i got an error:</p>
  
  <pre><code>Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = ' '
      at java.util.Formatter.checkText(Formatter.java:2547)
      at java.util.Formatter.parse(Formatter.java:2523)
      at java.util.Formatter.format(Formatter.java:2469)
      at java.io.PrintStream.format(PrintStream.java:970)
      at java.io.PrintStream.printf(PrintStream.java:871)
      at com.supermarket.project.Main.main(Main.java:11)
  </code></pre>
  
  <p>What should I do to correct this error?HELP!!! This error would come out when i enter a amount more then 300 but not under 300. WHAT SHOULD I DO??</p>