Need help adding data from an array with a variable.
Well what I'm trying to do is, I'm storing the current day in an array, and whenever the user clicks a button it will make it go to the next day.
I got the info I need stored in my array but whenever I try to use it to add an integer on it, it says "Array required, but java.util.arraylist found".
Code:
ArrayList playerList = new ArrayList();
playerList.add(newplayer.getDay());
[COLOR="red"]playerList[0] = newplayer.getDay() + 1;[/COLOR]
//"Array required, but java.util.arraylist found" I get this error for this code.
crntdaylbl.setText(playerList[0] + "/30");