I have a code written in C# which is using delegates. I need to convert it into java code. I tried it to convert it manually but am facing problem in delegates. Do you know any tool that can convert it automatically. Please help me to solve this issue.
I don't know if it can be done automatically, but manually you could solve it by using interfaces. In fact, a delegate is not a lot more than an interface with one method. Instead of passing an instance of the interface, you pass the method directly.