Skip to content

Instantly share code, notes, and snippets.

@ron623
Created January 30, 2015 03:25
Show Gist options
  • Save ron623/960150fba049e750c46a to your computer and use it in GitHub Desktop.
Save ron623/960150fba049e750c46a to your computer and use it in GitHub Desktop.
createString
// String型文字列を引数とし、文字列連結をするメソッド。
// 呼び出し元の文字列は変わらない。
public void createString(String testString){
// 文字列連結
testString = testString + " メソッド内で付加した文字列";
System.out.println(testString);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment