Fantastic that works! Its always something so minor, i had left super in by accident because I copied from an old programme of mine.
Thanks very very much everyone!...
User Profile
Collapse
-
Right so I am still at this I have updated the card and deck class they now look like this...Code:public class Deck { private Card [] deck; private int numberOfCards; /** * Creates a deck of 52 playing cards * The deck is set up in the order SPADES, DIAMONDS, CLUBS,HEARTS */ public Deck() { deck = new Card[52];Leave a comment:
-
Ahhh Ive worked out where that goes thanks! Now however I have a different problem the string prints out giberish! any ideas?...Leave a comment:
-
It was given to me in the skelton of the code from my tutor. I have no Idea what it does...Leave a comment:
-
would I add that in to the card constructor? or too the deck class?...Leave a comment:
-
Need help with a deck of cards homework!
I have been at this programme for hours trying to work out what is wrong. Any help would be very much appricated. Here is the breif I received.
The program
This week you are going to write three classes: Card.java, Deck.java and DeckTester.java . The specification for each class is given below.
Card.Java
This is a simple class that represents a playing card.
Card has two attributes:
...
No activity results to display
Show More
Leave a comment: