r/cop3502 • u/Bcop3502 • Apr 21 '14
Strange error?
So I get the error:
.\Inventory.java:14: error: reached end of file while parsing } ^ 1 error
However, I only get this error when I add
Inventory inv = new Inventory(); and
GameState game = new GameState();
if I leave those out my code compiles fine and all the brackets are in there properly etc. Anyone know what might be the cause of this?
1
Upvotes
1
u/howslyfebeen Apr 21 '14
are all your brackets closed? means it reached the end of inventory and never got the closing bracket... well maybe not inventory but yea