I have a line
String x = "Hello.August 27th.Links.page 1";
I am wondering if I can split this line into 4 other lines based on where the period is. For example, four other lines will be,
String a = "Hello"; String b = "August 27th"; String c = "Links"; String d = "page 1";
As you can see, I basically want to extract some parts of the line from a new line, the place where it is extracted is based on where the period ends, which ends the first line, and then shows where the second one is, etc. .. end lines.
Thanks in advance!
In android btw
source share