Hello,
Im new to java and have a question about an assignment I received. If this is not permitted, simply let me know.
I'm confused as to how to assign data to a value and a null string. Here are the first 2 instructions:
a) Use only two private instance variables rank and suit. rank is an integer holding the numeric value of one through thirteen representing the Ace through the King. suit is a String holding the values of either: "clubs", "diamonds", "hearts", or "spades".
b) Write a no argument method, setCard(), assigning data to a value of 1(ace) and a null string.
I am having trouble understanding part b. I understand that rank is an int array but I have no idea how to assign data to both an int and a string.
Thank you
