src/PokerHand.java
public int hasOnePair() {
		LinkNode<Card> ref = head;
		while (ref != null) {
			if (ref.getNext() != null) {
				// Check if there is a pair
				if (ref.getData().compareRank(ref.getNext().getData()) == 0) {
					// If there is a pair, record the paired rank and return
					return ref.getData().getRank().getValue();
				}
			}
			ref = ref.getNext();
		}
		return 0;
	}
// HasOnePair method returns the rank of the smallest pair
HasOnePair method returns the rank of the smallest pair
HasOnePair method returns the rank of the smallest pair
public int hasOnePair() {
		LinkNode<Card> ref = head;
		while (ref != null) {
			if (ref.getNext() != null) {
				if (ref.getData().compareRank(ref.getNext().getData()) == 0) {
					return ref.getData().getRank().getValue();
				}
			}
			ref = ref.getNext();
		}
		return 0;
	}
public int hasOnePair ( ) { LinkNode < Card > ref = head ; while ( ref != null ) { if ( ref . getNext ( ) != null ) { if ( ref . getData ( ) . compareRank ( ref . getNext ( ) . getData ( ) ) == 0 ) { return ref . getData ( ) . getRank ( ) . getValue ( ) ; } } ref = ref . getNext ( ) ; } return 0 ; }
HasOnePair method returns the rank of the smallest pair
HasOnePair method returns the rank of the smallest pair
// Check if there is a pair // If there is a pair, record the paired rank and return