September 20th, 2012, 05:27 PM
so how should the constructor look????
public Card(int rank, String suit){
???????
}
September 20th, 2012, 05:07 PM
I'm setting this rank and suit instance variables to four values because that's the only way I can connect rank with what rank contain (ace, jack ,queen, king) the same with the suit variable. Is...
September 19th, 2012, 04:12 PM
Ok what you are saying is this i think:
I declared two instance variables Rank and Suit
private int Rank;
private String Suit;
the constructor look like this:
public Card(){
September 19th, 2012, 04:11 PM
Ok what you are saying is this i think:
I declared two instance variables Rank and Suit
private int Rank;
private String Suit;
the constructor look like this:
public Card(){
September 19th, 2012, 12:16 PM
I am new at java programming so I need to make one class called Card. This class contains named constnts for the four Suits(CLUBS, DIAMONDS, HEARTS, SPADES) and four Ranks(ACE, JACK, QUEEN, KING)...