It's generally helpful to say what the errors are.
However...it's nothing to do with the fact that it's an inner class (note - it isn't a static inner class, it's just a normal inner class). The error is because you have a statement directly in a class body instead of being within a method.
Not to add any confusion, but just to be pedantic, I don't think there is such a thing as a static inner class. Static nested class, yes, but I believe the term "inner class" is defined by the JLS to only apply to non-static nested classes.