How to convert a String into the String array,suppose there is a String str="name" and i want to convert into String[] which contain every element of String,i can convert into character [] but i want it in the String[]
String[] tokens=str.toLowercase().split("?");
what should be the regex to convert it into String array so that tokens[0]="n",tokens[1]="a"