Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Split string

class Main
{
    // Iterate over the characters of a string
    public static void main(String[] args)
    {
        String s = "Techie Delight";
 
        String[] arr = s.split("");
 
        for (String ch: arr) {
            System.out.print(ch);
        }
    }
}
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #Split #string
ADD COMMENT
Topic
Name
4+6 =