I\'m trying to display: EQUIVALENT if the first numerical input is equal to the second input. What\'s wrong with my code?
import java.io.*; public class TwoNum{
The expression number=number2 is an assignment expression producing an integer. But a boolean is expected in this context. You want == instead of =. Common mistake.
number=number2
==
=