Error: Main method not found in class CustomString, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application in codio code example

Example: scala Error: Main method not found in class please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application

/*
  This happened to me because an the object that extended App had the 
  same name of a test class. Try renaming the object or the class if
  this could be your case too.
*/