public interface IMethodCallback
{
boolean Execute();
}
...
IMethodCallback callback = new IMethodCallback
{
boolean Execute()
{
return false;
}
};
This results in errors. How can I make something like this in Java?
You miss the parentheses of the constructor:
IMethodCallback callback = new IMethodCallback()
{
public boolean Execute()
{
return false;
}
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With