Count exact number of charaters in a string in java
<p>I have a string of names where all the different names are seperated by the same character (#) e.g. tom#will#robert#</p>

<p>I want to be able to count the number of names by counting the number of times that # appears, How would i go about doing this?</p>
