طريقة Java String concat ()
مثال
سلسل سلسلتين:
String firstName = "John ";
String lastName = "Doe";
System.out.println(firstName.concat(lastName));
التعريف والاستخدام
تلحق الطريقة concat()
(تسلسل) سلسلة بنهاية سلسلة أخرى.
بناء الجملة
public String concat(String string2)
قيمه المعامل
Parameter | Description |
---|---|
string2 | A String , representing the string that
should be appended to the other string |
تفاصيل تقنية
عائدات: | أ String ، تمثل نص السلاسل المدمجة |
---|
❮ طرق السلسلة