String to String Array in Java

public class StringToStringArray {
       
        public static void main(String args[]){

                String str = "Java String to String Array Example";        
                String strArray[] = str.split(" ");              
                System.out.println("String converted to String array");
                for(int i=0; i < strArray.length; i++){
                        System.out.println(strArray[i]);
                }
        }
       
}