eg:
String s = "this is a.line isover.
should appear like
"This is a.Line is.Over"
I thought about using a string tokenizer twice
-first split using"."
-second split using " " to get the first word
-then change charAt[0].toUpper
now i'm not sure how to use string character output as input for another?
I can also use the split method to generate an array that I tried
String a="this is.a good boy";
String [] dot=a.split("\\.");
while(i<dot.length)
{
String [] sp=dot[i].split(" ");
sp[0].charAt(0).toUpperCase();
source
share