Nuacht

I want to use the Java Observer pattern in my project. With that in mind, can you give me some sample code to demonstrate how it works?