Sublime Forum

I need help :P

#1

Sorry I’m new to sublime… when I try to compile this code

public class Test{
public static void main(String] args){
System.out.println(“test”);
}
}

I get

C:\Users\User\Desktop\public class Test{.java:1: error: class Test is public, should be declared in a file named Test.java
public class Test{
^
1 error
[Finished in 1.4s]

back… whats the problem? the file is named Test.java

0 Likes

#2

Read the error message again

You file name is “public class Test{.java”, not “Test.java”

0 Likes