java - Incompatible Types - found:int required:boolean -
i'm trying display: equivalent if first numerical input equal second input. what's wrong 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 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>number2) { system.out.println("gre...