java - Poker game hand evaluator arrays condition structure -
i made quick poker game. generates 5 random numbers , converts numbers actual cards values , symbols based on value. however, have problems when comes making hand evaluation. so far did flush right it's easy it's not perfect (it prints user has flush 5 times... ) , appreciate if me pair, 2 pair, 3 of kind , straight. rest afterwards need heads-up on how those. thank in advance help, here code : package tests; import java.util.*; public class tests { public static void main(string[] args) { boolean[] pack = new boolean[52]; // array not generate same number twice int[] cards = new int[5]; //the 5 unique random numbers stored in here. string[] cardsvalues = new string[5]; // assign card's value based on random number's value char[] cardssymbols = new char[5];//this assign card's symbol based on random number's value char symbols[] = {'♥', '♦', '♣', '♠'}; // possible symbols random number can take ...