HelloWorld2 class needs to be static.
Also, I THINK declaring a public class more than once goes against convention? I can't be sure :P
i.e. use class or private class instead for inner classes.