java - LibGDX -class TagGame contains a signature 'LArrayList<>;' ill-formed at position 11 -


i have no idea what's wrong. error came after tried use arraylist store player types. i've since erased did, 3 lines, error won't go away.
tried restarting eclipse, cleaning/rebuilding, , refreshing. still there. thing haven't done move code brand-new project, that's huge pain in butt i'd avoid that. , know causes error avoid in future.
how used arraylist:

arraylist<player> players; ... public void create() {     players = new arraylist<player>();      players.add(p1);     players.add(p2); } 

this has worked in other applications, don't see why should different libgdx. or why error won't go away after erasing it.

edit: error occurs on letter "p" of "package" in desktoplauncher class. arraylist in main game class.

edit 2: if try run it, console outputs error: not find or load main class com.fun.tag.desktop.desktoplauncher. file exists, sure, , opened before error came - literally nothing changed in project other 4 small lines. lines never compiled.


Comments