title: Cannot figure out how to format scanner input to two decimal places without getting this error
body: <p>Can someone lead me in the right direction or help me figure out why it's giving me the error of &quot;100.0Exception in thread &quot;main&quot; 310.93 degrees in Fahrenheit isjava.util.MissingFormatArgumentException: Format specifier '%7.2f'? I'm a beginner in Java and can't seem to find a fix for this issue.</p>
  <pre><code>
  public static void main(String[] args) {
          // Below this comment: declare and instantiate a Scanner
            
            
          // Below this comment: declare any other variables you may need
          // to store the user's input and the Kelvin equivalent value
          
  
          // Below this comment: collect the requried inputs from the user
          System.out.println(&quot;Enter temperature in Fahrenheit : &quot;);
          Scanner scan = new Scanner(System.in);
          float fahr = scan.nextFloat();
          // Below this comment: call your FahrenheitToKelvin method
          FahrenheitToKelvin(fahr);
  
          // Below this comment: disply the required results
          System.out.printf(fahr + &quot;%.2f&quot; + &quot; degrees in Fahrenheit is%7.2f&quot;, FahrenheitToKelvin(fahr));
          System.out.printf(&quot; degrees in Kelvin. &quot;);
                
         }
         
         // define your FahrenheitToKelvin method here below
         public static float FahrenheitToKelvin(float fahr) {
            float kelv = (float) ((fahr - 32) * 5/9 + 273.15);
            return kelv;
        
      }
      }
  </code></pre>