[b][red]This message was edited by Roysterfivenin at 2006-7-20 7:29:54[/red][/b][hr]
Before i say anything im a complete beginner so i apologise in advance
Im trying to write this code but it wont compile because i get a "non-static method fillRack(java.lang.string) cannot be referenced from a static context" error.
Now i kind of get what it means but i dont want to go changing all my class/instance methods just to accomodate this, so could you please please tell me how to get round this?
Your help is very much appreciated and heres the code...
public void fillRacks()
String theTiles = new String;
for (int a = 1; a <= NUMBER_OF_PLAYERS; a++)
for(int b = 0; b < Player.RACK_SIZE; b++)
char aTile = this.thePool.pickTile();
String str = new StringBuilder(aTile).toString();
theTiles[b] = str;
String allTiles = theTiles + theTiles + theTiles + theTiles+ theTiles + theTiles + theTiles;
Player.fillRack(allTiles); <----- this is the offender !!
Again thanks alot for any help you can give, and remember try and keep any advice simple