Steps to Reproduce: 1. Create a List<Card> called cards, and add cards Club 3, Diamond 3, Heart 3, Club 4, Diamond 4, and Heat 4. 2. Invoke CardAnalyzer.isAirplane(cards). Expected Result: CardAnalyzed.isAirplane should return true. Actual Result: CardAnalyzer.isAirplane returns false. More Information: Besides the forms of AAABBBXY and AAABBBXXYY, AAABBB is also a type of airplane. May consider adding judge conditions that whether cards.size()%3 equals to 0, and whether there is no kicker.
The code for checking the existence of kickers is added in the beginning of the method, which successfully solved the problem. This bug is fixed.