I was looking into some tutorial and stumbled on this code:
public void run(String... args) throws Exception {
eventBus.on($("quotes"), receiver);
publisher.publishQuotes(NUMBER_OF_QUOTES);
}
This is the first time I see $("quotes")
in Java. I'd appreciate someone explaining to me what's going on there.
Here's the source:
Update:
This is not a question about $ as Java variable name. I know that it's a valid variable name. However, the format of $("something") looks JQuery-like; hence threw me off thinking that it's a special directive or something.