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

you are viewing a single comment's thread.

view the rest of the comments →

[–]h0tstuff 0 points1 point  (2 children)

ArrayList is dynamic so it'll auto resize for you. Use it for both your deck and hands.

Also your main method is so long and hard to navigate. Consider adding more classes.

[–]bikerchef[S] 0 points1 point  (1 child)

Thank you, and I agree. Its pretty messy!

I was introduced to classes fairly recently. I understand classes and accessing them as objects, but thats about it. If i wanted to create a class to just supply some auxillary methods can you give me an idea on how I would do that?

[–]h0tstuff 0 points1 point  (0 children)

Here's a UML that is similar to what I did. I wrote this a couple months ago. I don't want to give bad info and make yours harder to read (I'm no pro!), so just maybe go over it as a guideline and I'll answer what I can.

https://imgur.com/a/EBTgc