0
Why i need put public for run compilation on eclipse.
If i put class Myclass { } when i click run. eclipse return error and says you need write with "public class." why its happened?
1 Odpowiedź
+ 1
The main class needs to be public, since the main method will be innaccessible if it is not public