Quantcast
Viewing all articles
Browse latest Browse all 42

Answer by Karthik T for Check if string is a punctuation character

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]))

Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>