Friday, 6 September 2013

Same char in one string

Same char in one string

I need to know how many chars of the same type are in one string.
I have tried this
String x ="(3+3)*(4-2)";
int a = x.indexOf( "(" );
But that only give me the first index

No comments:

Post a Comment