I need my Java program to take a string like:
\"This is a sample sentence.\"
and turn it into a string array like:
{\"this\
Try using the following:
String str = "This is a simple sentence"; String[] strgs = str.split(" ");
That will create a substring at each index of the array of strings using the space as a split point.