Executing java~ Problem is doesn't find the main class | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Executing java~ Problem is doesn't find the main class

Code: Public class Awesome{ public static void main (String[] args) {System.out.println("I'm learning how to program in java."); System.out.println("That's Awesome!");} } Result: Awesome.java:1: error: class, interface, or enum expected Public class Awesome{ ^ 1 error Error: Could not find or load main class Awesome what change do I make so it produces the correct result?

1st Feb 2021, 6:18 PM
Jawad Rashid
Jawad Rashid - avatar
2 Réponses
+ 2
just replace first P by p: java is case sensitive ^^
1st Feb 2021, 6:34 PM
visph
visph - avatar
0
Thank you so much @visph it worked now I just have to space it a bit so it matches the requirements of the assignments. Appreciate you help
1st Feb 2021, 6:41 PM
Jawad Rashid
Jawad Rashid - avatar