I have values in an ArrayList as Value1, Value2, Value3.
Now i need to return them in a way as a Single String as Value1_Value2_Value3 using Java Streams.
I've tried this but it didn't work
myList.stream().map((s)->s+"_").toString();
I've also tried collect(toList()); but I'm not sure how to proceed further to convert it to a String.
How can I do it?