Skip to content

Instantly share code, notes, and snippets.

@ron623
Created January 30, 2015 03:28
Show Gist options
  • Save ron623/bd046f3e5bf812ac32fb to your computer and use it in GitHub Desktop.
Save ron623/bd046f3e5bf812ac32fb to your computer and use it in GitHub Desktop.
createChangeString
// StringBuilder型変数を引数とし、文字列連結をするメソッド。
// 呼び出し元の文字列も変更される。
public void createChangeString(StringBuilder sbr){
// 文字列連結
sbr = sbr.append(" メソッド内で付加した文字列");
System.out.println(sbr);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment