title: how to input two decimal number
body: <pre><code>import java.text.DecimalFormat;
  import java.util.Scanner;
  
  
  public class DecimalFormatExample
  {
  public static void main(String[] args)
  {
      Scanner input=new Scanner(System.in);
  
      double number1;
      double number2;
      double number3;
  
      System.out.print("Insert first number:");
      number1=input.nextInt();
  
      System.out.print("Insert second number:");
      number2=input.nextInt();
  
      System.out.print("Insert third number:");
      number3=input.nextInt();
  
      DecimalFormat df = new DecimalFormat("0.00");
  
      System.out.println(df.format(number1));
      System.out.println(df.format(number2));
      System.out.println(df.format(number3));
  }}
  </code></pre>
  
  <p>when i insert the first number for example:</p>
  
  <pre><code>Insert first number:1
  </code></pre>
  
  <p>it will print out <code>1.00</code></p>
  
  <p>if i insert the number <code>Insert first number:1.00</code>, i get error. How can i put insert the number with decimal point? </p>