DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
how to test how many of one character is in a string java
int count = string.length() - string.replaceAll("g","").length()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#test
#character
#string
#java
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit