[ad_1]
With java 8 it is much easy. You could use something like this
return string.chars().distinct().count();
[ad_2]
solved How to find number of distinct characters in a string
[ad_1]
With java 8 it is much easy. You could use something like this
return string.chars().distinct().count();
[ad_2]
solved How to find number of distinct characters in a string