I am a
Java newbie, but actively learning the language. Does Java provide a simple syntax that allows the developer to define, subscribe to, raise/activate, then receive notification of events that are coordinated entirely within his/her use of native Java syntax? (As a newbie) I am studying (staring at) lambda and anonymous inner class examples, but I haven't, yet, come even close to understanding how to use them for general-purpose, event-driven logic in Java, if possible. My Qt/C++ and C# experience has enjoyed lots of success with Qt's signals/slots feature and C#'s delegate feature.
If you know of any very simple examples of this type of general-purpose event support, within native Java syntax, please provide links, or code examples. I appreciate your time and consideration! Best wishes!
Here is a simplistic example of my use of C#'s delegate feature for general application event processing :