I dont have a java compiler on the computer i am using, so i dont know if this syntax is allowed. Try this.I dont think you need to use this when returning iCoins.Code:private int iCoins; public int getCoins(int value) { //Set 'iCoins' this.iCoins = value; //Return the value of 'iCoins' return iCoins; }




Reply With Quote