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:
            Asked
            
        
        
            Active
            
        
            Viewed 26 times
        
    -1
            
            
        - 
                    Please change your class name TestPlayer.java to Player.java. – Nizamudeen Sherif Dec 24 '20 at 08:04
- 
                    2Looks like you are running the wrong class. Right click on TestPlayer and select 'Run As > Java Application' – greg-449 Dec 24 '20 at 08:12
1 Answers
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

