Fundamental problem with new file - "class, interface or enum expected" on . all


Probably me missing some fundamental bit of info explaining this but …

jmeIssuefunctions photo JMEissuejpg_zps35a7c3f1.jpg

Probably me missing some fundamental bit of info explaining this but …

Messing around and wanted to try just making a quick class for initializing stuff

but when I tried to make the constructor it started to cough … I tried other functions, alternative constructor stuff,

Then I tried adding a function to the Main.java autogenerated with new project - this works fine

… But in my own file that’s as simple as daylight, if I try to make a function or try to do anything but add fields… it coughs and hacks and spits…

I’m not sure what my question is supposed to be, so Imma have to go with the simplistic “wtf?” :confused: :slight_smile:

ur } brace after [java]Object weapon;[/java] needs moving to the end of the file

… … nobody saw this post !!

:stuck_out_tongue:

thx xD I was about to go nuts here :slight_smile: