I have a simple arraylist set up, but I can\'t seem to add objects to it.
import java.util.ArrayList;
public class Inventory {
ArrayList inventory = new A
Your "adding" statements are just "in the air": not inside one method or constructor.
Wrap in inside one like for instance:
public class Inventory {
private List inventory = new ArrayList(); //prefer interface here ;)
public Inventory(){ //statements wrap into this constructor
inventory.add("Sword");
inventory.add("Potion");
inventory.add("Shield");
}
}