I am trying to make a program that corrects the punction of a paragraph, part of this is the sentances. Only the first character of the sentance is a Capital the rest r lowercase until a full stop (.) occurs, when it does tehre are two spaces and a new sentance hence a new captial letter. eg
Hello World. hello User.
would become
Hello world. Hello user.
I am using a
string tokenizer and making a completely new string (I tried a string buffer but it just dosent have the methods i need). I am using a counter to count along the sentance eg (plz note i have made the spaces more so that can understand how i am counting)
012345678910111213012345678910
Hello world . Hello user.
Two Questions, how can i check if the charAt is 0 and change that one character to an upper case (since im putting all to lower at the begining of the process). And check for a . to add two spaces after so i can reset the counter?
Any help would be abosultly great, also I am having trouble understanding the API, does anyone know of a good site that has the classes and methods and examples of the method being described? Ty all.