Your main method has to have the signature public static void main(String[] args)
meaning you can’t mark it as returning a boolean. I don’t know what the point of this is but if you need it to return a boolean you should make another method to return a boolean.
Your method needs to have he signature static boolean yourMethodName();
and fill in the method with your other stuff. Then you can call that method from main.
1
solved returning boolean in nested if statement in java