Ok I have a class called WordPlayer and in this class I have 2 methods
setTray // sets the player Tray with to its parameter.
getTray // it gets the player Tray of Tiles
and the tray implements a stack
how do I get a tile on the player tray
I attached the WordPlayer class is this enough info.
class WordPlayer extends Player
{private Tray playerTray;
public Tray getTray()
{
return playerTray;
}//ends getTray
public void setTray()
{
playerTray = new Tray();
}//ends setTray
}//ends WordPlayer
setTray // sets the player Tray with to its parameter.
getTray // it gets the player Tray of Tiles
and the tray implements a stack
how do I get a tile on the player tray
I attached the WordPlayer class is this enough info.
class WordPlayer extends Player
{private Tray playerTray;
public Tray getTray()
{
return playerTray;
}//ends getTray
public void setTray()
{
playerTray = new Tray();
}//ends setTray
}//ends WordPlayer
Comment