I want to do something like this in Java but I don’t know the way:

When event “object 1 say ‘hello'” happens,
then object 2 responds to that event by saying “hello”.

Can somebody give me a hint or sample code?

6 Answers
6

Leave a Reply

Your email address will not be published. Required fields are marked *