I’m having a lot of trouble turning an array into an ArrayList in Java. This is my array right now:
Card[] hand = new Card[2];
“hand” holds an array of “Cards”. How this would look like as an ArrayList?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As an
ArrayListthat line would beTo use the
ArrayListyou have doAlso read this http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html