Java files won't compile

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Java files won't compile

priya465
Java is case-sensitive. The static keyword must be lowercase. Your code does not have static in all-lowercase; therefore, the compiler interprets Static as a return type, interprets the actual return type as the name, and then chokes on the actual name.

To fix this, simply change Static to static everywhere.