Skip to content

Instantly share code, notes, and snippets.

@ron623
Created January 29, 2015 09:12
Show Gist options
  • Save ron623/483e251e722e563605b5 to your computer and use it in GitHub Desktop.
Save ron623/483e251e722e563605b5 to your computer and use it in GitHub Desktop.
// 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