Incompatible Types - found:int required:boolean
<p>I'm trying to display: EQUIVALENT if the first numerical input is equal to the second input. What's wrong with my code?</p>

<pre><code>import java.io.*;
public class TwoNum{
    public static void main(String[] args){
        int number;
        int number2;
        String input1="";
        String input2="";

        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

        System.out.println("Input a number: ");

        try{
            input1=in.readLine();
        }catch(IOException e){
            System.out.println("Error!");
        }

        number = Integer.parseInt(input1);

        try{
            input2=in.readLine();
        }catch(IOException e){
            System.out.println("Error!");
        }

        number2 = Integer.parseInt(input2);

        if(number=number2)
        {
            System.out.println("EQUIVALENT");
        }
        if(number&gt;number2)
        {
            System.out.println("GREATER THAN");
        }
    }
}
</code></pre>
