Answers for "java program to seprate letters in a word"

0

split each character in a string (java)

class Test {
         public static void main( String[] args) {
             String[] result = "Stack Me 123 Heppa1 oeu".split("\\a");                                                                                   

             // output should be
             // S
             // t
             // a
             // c
             // k
             // M
             // e
             // H
             // e
             // ...
             for ( int x=0; x<result.length; x++) {
                 System.out.println(result[x] + "\n");
             }
         }
     }
Posted by: Guest on December-15-2020

Code answers related to "java program to seprate letters in a word"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language