Firstly, i created a file name Test2.java in netbean.
Here is the code:
And created another class in netbeans. Here is the code:
i can run it without any error. but i get error message which i stated in the last post when i tried to open the Test2.java file in sublime and try to compile and run it.