how to i use java reflections and annotation?
<p>is there any way to scan a project for annotated methods and run them as in a game I mod sometimes (Minecraft), when you want to add stuff to the game you put @Init before it, i believe this causes it to be run. I would like to know how to make it so i can make something like @Init or @Load cause the preceeding method to be run upon either executing a line of code or the program starting up.</p>

<p>I have been looking around on the web for help and i found out the best way but when i type for example Reflections reflect = .......... The Reflections gets underlined red and says Reflections cannot be resolved to be a type. Please help.</p>
