View the step-by-step solution to:

Create and display all 52 cards in a standard deck of playing cards (2-10, J, K, Q, A of Hearts, Diamonds, Clubs, Spades). You MAY NOT have 52 lines...

Create and display all 52 cards in a standard deck of playing cards (2-10, J, K, Q, A of Hearts, Diamonds, Clubs, Spades). You MAY NOT have 52 lines that create the cards manually. Note: I am NOT asking you to store the 52 cards. I am only asking you to build them, and ask each one to display itself. Do not use an array for suits or rank (do not use array to creating card object) do not use something that is not mention in the teacher's record, which is in the web site below.
public class Card
{
//Fields
String suit;
String value;

//Constructors
Card(String suit, String value)
{
this.suit = suit;
this.value = value;
}

//method
void display()
{
System.out.println(this.value + " of " + this.suit);
}
}

copy this link to web browser to see what he said ( https://vimeo.com/groups/175885 )
Sign up to view the entire interaction

Top Answer

Attached above are two... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online