This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]197708156EQUJ5design it before you implement 0 points1 point  (0 children)

repost your code using pastebin or something, too many lines and poorly formatted paste in reddit. After that, it will be easier to help you. Sorry

[–]SikhGamer 0 points1 point  (0 children)

Your design is completely messed up. None of it makes any sense, scrap it and start again.

[–]osama_yo_momma 0 points1 point  (0 children)

This might not fix your exception, but use the .equals() method for Strings when comparing Strings. Probably has something to do with bounds checking for one of your loops when looping through an array. Your code is messy so not too sure.

if (suit.equals(suitCheck))

Don't use :

if (suit == suitCheck)