src/PokerHand.java
public int hasTwoPair() {
		LinkNode<Card> ref = head;
		if (hasOnePair() != 0)
			while (ref != null) {
				if (ref.getNext() != null)
					if (ref.getData().compareRank(ref.getNext().getData()) == 0
							&& ref.getData().getRank().getValue() != hasOnePair())
						return ref.getData().getRank().getValue();
				ref = ref.getNext();
			}
		return 0;
	}
// HasTwoPair method returns the rank of the largest pair
HasTwoPair method returns the rank of the largest pair
HasTwoPair method returns the rank of the largest pair
public int hasTwoPair() {
		LinkNode<Card> ref = head;
		if (hasOnePair() != 0)
			while (ref != null) {
				if (ref.getNext() != null)
					if (ref.getData().compareRank(ref.getNext().getData()) == 0
							&& ref.getData().getRank().getValue() != hasOnePair())
						return ref.getData().getRank().getValue();
				ref = ref.getNext();
			}
		return 0;
	}
public int hasTwoPair ( ) { LinkNode < Card > ref = head ; if ( hasOnePair ( ) != 0 ) while ( ref != null ) { if ( ref . getNext ( ) != null ) if ( ref . getData ( ) . compareRank ( ref . getNext ( ) . getData ( ) ) == 0 && ref . getData ( ) . getRank ( ) . getValue ( ) != hasOnePair ( ) ) return ref . getData ( ) . getRank ( ) . getValue ( ) ; ref = ref . getNext ( ) ; } return 0 ; }
HasTwoPair method returns the rank of the largest pair
HasTwoPair method returns the rank of the largest pair