Skip to content

Instantly share code, notes, and snippets.

@azusa
Last active January 1, 2016 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azusa/8091124 to your computer and use it in GitHub Desktop.
Save azusa/8091124 to your computer and use it in GitHub Desktop.
import java.util.HashMap;
import java.util.Map;
public class PrivateMethod {
// 結果が入っているとしましょう
private int result = new HashMap<String, String>();
public void execute(){
doExecute();
}
public int getResult(){
return result;
}
private void doExecute(){
this.result = ~~
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment