Помощ за Sets And Maps Advanced - Exercises/ 08. Hands Of Cards
https://pastebin.com/jDjrhzxg
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 9 out of bounds for length 9
at Exercise1002.Exercise1002.calcCardPower(Exercise1002.java:50)
at Exercise1002.Exercise1002.calculatePower(Exercise1002.java:39)
at Exercise1002.Exercise1002.lambda$main$0(Exercise1002.java:31)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at Exercise1002.Exercise1002.main(Exercise1002.java:30)
Опитах се да дебъгна, но не виждам защо се получава така.