Error: Main method not found in class Ex22.Define the main method as follows:
public static void main (String[]args)
Alternatively, the JavaFX application class must extend javafx.application.Application
It says, but I don't know why I'm making an error when I run it even though it's compiled.
The program is as follows:
public class Ex22{
public static void main() {
int[]moneyList={121902,8302,55100};
for(inti=0;i<moneyList.length;i++){
System.out.println(moneyList[i]);
}
for (intm:moneyList) {
System.out.println(m);
}
}
}
You must include String[]args as the main method argument.
If the project is a JavaFX application, you will need to extend the application class as warned.
"If the project is a normal Java project, you will need to specify the main method arguments as ""tokoi"" replied."
If you specify the IDE you are using, how you are trying to do it, and what you want to do, you will get a more specific answer.
352 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
360 I would like to know if I can retrieve data using pandas grouping.
356 I want to change the format (date and time display) of the legend in chronological order.
365 FileNotFoundError in json: What is the difference between these two?
© 2023 OneMinuteCode. All rights reserved.