0
Can aybody know How it is working? Here Join method is related to Strings or multithreading?
2 Answers
+ 2
It belongs to the String class and has nothing to do with threads.
The String.join() takes a delimiter as the first argument and followed by a series of character sequences.
Try printing this.
String c = String.join(" and ",a,b);
In your code you need one more argument passed to join() to see the effect of 'a'.
+ 1
Thanks Avinesh
Now i know the whole conceptâșđ