-1

Everytime I try to run this program it's showing up could not load main class. I have informations in Player class and testing it through TestPlayer class which has the main method:

enter image description here

howlger
  • 31,050
  • 11
  • 59
  • 99
Ashikul Bari
  • 1
  • 1
  • 2

1 Answers1

0

In your main method String[] args is missing so technically, it is not a main method that can be used to start a Java application:

public static void main(String[] args) {
    //...
}
howlger
  • 31,050
  • 11
  • 59
  • 99