How to count the same no. of character in two different strings.
You can just use:
It will return the number of characters from string.
Thanks for reply!
But i wants to know how many different character in one string from another string.
Then just do the same for both variables and little equation. Like this:
This is only the example. Sky is the limit - as we used to say
instead of it i use v1.compareTo(v2)
it will return the int32 value.
if 0 then both are same
if -1 then there’s 1 char is different.
Thanks for help
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.