So I had to scrap my old tile based level format for an object based one so I could use arraylists. The first thing I need to figure out is how to execute Java code written in a text file. The reason I need this is because each object will be added to the arraylist one by one from the txt.
Example of what I want to execute as my test(in case it helps) Level1.add(new GroundTileATop(10,10) Level1.add(new GroundTileATop(40,10)
Sorry if this is a n00bish question, but I'm still sort of a beginner in Java, and I've never done anything like this before.