Java - method selectors?
<p>I'm coming from an Objective-C background. In Objective-C, you can store references to methods by using <code>@selector</code> variables, for example <code>@selector(terminate)</code>. Then, you can simply "apply" those selectors on objects, which executes the method described by the selector.</p>

<p>Now, I have to program something in Java. Is there anything similar to this in Java? Or a workaround?</p>

<p>EDIT: Basically, I'm creating a CLI program. When I read in the commands, I have to map the commands to certain methods. I thought about creating a dictionary associating a command with a method selector.</p>
