How to count character in java string

Code to get the character in String. We can use length function in String class.

 

Leave A Comment

Your email address will not be published. Required fields are marked *