class Test { | |
void ft() { | |
Inner inner = new Inner().invoke(); | |
String _result = inner.getResult(); | |
int k = inner.getK(); | |
System.out.println(_result + k); | |
} | |
private class Inner { | |
private String result; | |
private int k; | |
public String getResult() { | |
return result; | |
} | |
public int getK() { | |
return k; | |
} | |
public Inner invoke() { | |
result = ""; | |
result +="s"; | |
k = 0; | |
return this; | |
} | |
} | |
} |