poker straight java

How I can check if Java poker hands?
If I have 5 cards with the status and how to respond to check whether poker hands different straight lines that java, hot flashes, etc? I'm not looking code, just a way to do it. Thanks!
There is no trick for him. You will have a variety of methods, each with a series of five letters and return a Boolean. One for each type of hand to try to detect. Then the code each method, simply make the appropriate checks. It is a bit of attention to detail, but I see no way around it. For example: ISPAIR – look at each card and see if there is another in the hand of the same rank isThreeOfAKind – ISPAIR like, but must find two cards with the same rank each card chosen isFlush – take the first letter, note of his suit, then check the other four cards have the same color. isStraight – find the smallest card, then check that the four cards In other words, is a card with each: a higher rank, two higher-ranking higher and three four high. With Aces are low or high, will have to work harder this method taken into account. isStraightFlush – could be applied and isFlush isStraight call and only returns true if both are true isRoyalFlush First check – then isStraightFlush verify that the card has the lowest rank 10. You get the idea. A fact to consider if you think that three of its kind, as a pair, since technically, there are two letters the same range. If not, the code is called ISPAIR isThreeOfAKind (and isFourOfAKind) and return true if any of them are true. Wildcards complicate these methods, course. Then, they need a way of knowing what is wild, are on the maps to see if they meet the requirements of the nature of the hand, for verification.
MobiPoker – Mobile Java Poker Game