Compare Integers without Operators
Find out if two integers are equal without using comparison operators. Java solution explained in detail on my website.
Steps to set up development environment in Eclipse
Download or clone the project from GitHub.
Navigate to the project directory and run the following from the command line:
$ mvn package
Open Eclipse in order to import the project.
File -> Import -> Maven -> Existing Maven Projects (Navigate to folder and import)
The Main class in the
com.chrisbaileydeveloper.javacompareints package holds the solution.
The MainTest class in the
com.chrisbaileydeveloper.javacompareints package holds the JUnit test cases.
Windows 7 64bit, Eclipse IDE STS Luna 4.4.1, Maven 3.1.0