Judge0 CE

FREEMIUM
By Judge0 | Updated 24 giorni fa | Tools
Popularity

9.9 / 10

Latency

655ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Have execution error for java

Have execution error for java, how can I fix this, always came this error message for simple java code also,

Main.java:7: error: class BinarySearch is public, should be declared in a file named BinarySearch.java
public class BinarySearch {
^
1 error.

Rapid account: Mraheez 32
mraheez32 Commented 18 ore fa

Make sure class name is Main always

Join in the discussion - add comment below:

Login / Signup to post new comments