I'm attempting to make a DnD character generator, and for part of that I need to have a list of stats that are editable by other methods, so I am attempting to add it at the class level. My current code is:
public class CharacterCreator extends Application
{
ArrayList<String> stats = new ArrayList<String>();
stats.add("STR");
stats.add("DEX");
stats.add("CON");
stats.add("INT");
stats.add("WIS");
stats.add("CHA");
public void start(Stage primaryStage)
{
But when I try to run it, I get a "identifier expected" error in on every 'add' line.