Do you want to check more punctuations other than just .
?
If so you can do this.
String punctuations = ".,:;";//add all the punctuation marks you want....if(punctuations.contains(letter[a]))
Do you want to check more punctuations other than just .
?
If so you can do this.
String punctuations = ".,:;";//add all the punctuation marks you want....if(punctuations.contains(letter[a]))