Codes are working on eclipes but not on codeblocks

these codes are working on my eclipse but showing the error
Error: Main method not found in class Main, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application

can you please explain to me what to change

@Amogh_Agarwal I can see you have submitted the code and got full point. So Can I assume your problem is solved?

yes it has been solved

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.