1 2 3 4 5 6 7 8 9 10 11 12 13 14
public class HelperExample { int someMethod(int arg1) { int localVar = 5; class Helpers { int helperMethod(int arg) { return arg + localVar; } } Helpers $Helpers = new Helpers(); return $Helpers.helperMethod(10); } }