Let\'s say I have a String array that contains some letters and punctuation
String letter[] = {\"a\",\"b\",\"c\",\".\",\"a\"};
In letter[3]
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]))