LoginSignup
1
0

More than 5 years have passed since last update.

javaで文字列を連結する方法

Posted at

C#と同じく、(+)演算子を使って文字列の連結ができる。


String str1 = "清風";
String str2 = "清風情報工科学院";
        
String str3 = str1 + str2;
        
System.out.println(str3);

結果:
スケッチ (7).png

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0