zpublic class main { void somefunction(int x) { class helper { // some class that only // somefunction needs } } void anotherfunction(int y) { // . . . } }