src/PokerHand.java
public int hasFlush() {
		LinkNode<Card> ref = head;
		while (ref.getNext() != null) {
			if (ref.getData().compareSuit(ref.getNext().getData()) != 0)
				return 0;
			ref = ref.getNext();
		}
		return ref.getData().getRank().getValue();
	}
// HasFlush method returns the largest rank in the flush
HasFlush method returns the largest rank in the flush
HasFlush method returns the largest rank in the flush
public int hasFlush() {
		LinkNode<Card> ref = head;
		while (ref.getNext() != null) {
			if (ref.getData().compareSuit(ref.getNext().getData()) != 0)
				return 0;
			ref = ref.getNext();
		}
		return ref.getData().getRank().getValue();
	}
public int hasFlush ( ) { LinkNode < Card > ref = head ; while ( ref . getNext ( ) != null ) { if ( ref . getData ( ) . compareSuit ( ref . getNext ( ) . getData ( ) ) != 0 ) return 0 ; ref = ref . getNext ( ) ; } return ref . getData ( ) . getRank ( ) . getValue ( ) ; }
HasFlush method returns the largest rank in the flush
HasFlush method returns the largest rank in the flush