Skip to content
Find out if two integers are equal without using comparison operators.
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

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

  1. Download or clone the project from GitHub.

  2. Navigate to the project directory and run the following from the command line:

    $ mvn package

  3. Open Eclipse in order to import the project.

  4. File -> Import -> Maven -> Existing Maven Projects (Navigate to folder and import)

src/main/java

The Main class in the com.chrisbaileydeveloper.javacompareints package holds the solution.

src/test/java

The MainTest class in the com.chrisbaileydeveloper.javacompareints package holds the JUnit test cases.

Development environment

Windows 7 64bit, Eclipse IDE STS Luna 4.4.1, Maven 3.1.0

Author

Chris Bailey

You can’t perform that action at this time.