I am attempting to create a Set game(www.setgame.com) as part of a project for school. This class is supposed to take a deck of 81 cards and assign them each a color, shape, number, and shading. I attempting to just do the color part first, so I know how to get on the right track and complete the rest, and have thus simplified it to making them all the color "red". I keep getting an error message saying java.lang.String cannot be converted to SetDeck. I don't know how I am to fix this issue. This leads me to the next part of the question how am I to blend my array to contain string elements and int elements. From what research I have done this is a no no and while it can be done, its much easier on you if they are separate. While I would love to do it easily, the project wants a printout in the end from the array saying something like array[0]= "red oval 1 filled". The code I have written this far in this class is below.
If you require any further explanation or clarity please ask. I have no prior coding experience so I will try my best to explain even further.
public class SetDeck{
private SetDeck [] deck;
private int top;
public SetDeck(){
top = 0;
deck = new SetDeck[81];
for(int r = 0; r < 80; r++){
deck[r] = "red";
}
}