Join Array Elements into String using Java

join method

package app; public class Main { public static void main(String[] args) { String[] data = {"First", "Second", "Third"}; String text = String.join(",", data); System.out.println(text); } }

Leave a Comment

Cancel reply

Your email address will not be published.