A simple implementation of c++ pair class in JAVA
This is a generic implementation of the Pair class of c++ in JAVA.This is very helpful for competitive programmers who use JAVA for coding their solutions.
First entry is recommended to be something that is Comparable, something like a string,character,integers or long numbers but if a seperate class is included, compareTo method which is overrided must be changed and prefences must be set depending upon the class included.