How could I split a string into a List not breaking words, but breaking apart really long words?
Example: “This is a very long text”
Becomes
“This is a”
“very long”
“text”
But a string like “asdfawerawefefrafewa”
Becomes
“asdfaw”
“erawefe”
“frafewa”
even though its got no spaces.
I’ve already got this code but it splits words too 
public ArrayList<String> splitLines(String s) {
ArrayList<String> ret = new ArrayList<String>();
char c; String ln = "";
FontMetrics fm = Console.getWindow().getGraphics().getFontMetrics();
for (int i = 0; i < s.length(); i++) {
c = s.charAt(i);
if (fm.stringWidth(ln) >= maxWidth) {
ret.add(new String(ln));
ln = "";
}
ln += c;
}
return ret;
}
Thanks.

