Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

String join in java

// Java program to demonstrate
// working of join() method
  
class Gfg1 {
    public static void main(String args[])
    {
        // delimiter is "<" and elements are "Four", "Five", "Six", "Seven"
        String gfg1 = String.join(" < ", "Four", "Five", "Six", "Seven");
  
        System.out.println(gfg1);
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #String #join #java
ADD COMMENT
Topic
Name
1+9 =