well I am trying to create a java calculator but whenever I try to enter a number it requests it twice, not only this but the number I enter for the first number doesn't work and only gives me a 0+(what ever is entered into number 2) would anyone care to help me? and explain what I need to do to fix this?

```
package Calc1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
public class Calc1 {
public static void main(String[] args) throws IOException {
    // TODO code application logic here
    Boolean test = true;
    Scanner in = new Scanner(System.in);
    Scanner in2 = new Scanner(System.in);
    int a = 0;
    int b = 0;
    String sum;

    System.out.println("Please enter the first number you wish to calculate.");
    if(in.hasNextInt()) {
        b = in.nextInt();
    }
    while (!in.hasNextInt()) {
        System.out.println("Invalid number. Please enter digits only.");
        in.next();//Go to next
    }
    //stops infinite loop by requesting Scanner try again

    System.out.println("Please enter the second number you wish to calculate.");
    if(in2.hasNextInt()) {
        b = in2.nextInt();
    }
    while (!in2.hasNextInt()) {
        System.out.println("Invalid number. Please enter digits only.");
        in2.next();//Go to next
    }
    //stops infinite loop by requesting Scanner try again

    BufferedReader br2 = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("please enter one of the following operators + - / *");
    sum = br2.readLine();
    if ("+".equals(sum))
    {
        int c = a + b;
        System.out.println(a + "+" + b + "=" + c);
    }
    if ("-".equals(sum))
    {
        int c = a - b;
        System.out.println(a + "-" + b + "=" + c);
    }
    if ("/".equals(sum))
    {
        int c = a / b;
        System.out.println(a + "/" + b + "=" + c);
    }
    if("*".equals(sum))
    {
        int c = a * b;
        System.out.println(a + "*" + b + "=" + c);
    }
}
}

```

how so my question is this, what have I done wrong? and how do I fix it so that I only have to enter each number once (and both work instead of giving 0)