Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

joining an array of strings in java

// my linkedin : https://www.linkedin.com/in/vaalarivan-prasanna-3a07bb203/
array = new ArrayList<String> {"daddy", "Mummy", "Son"};  //array initialisation
String str = String.join("", array);
//str = daddyMummySon
 
PREVIOUS NEXT
Tagged: #joining #array #strings #java
ADD COMMENT
Topic
Name
4+1 =