Count No of character in Two different string

How to count the same no. of character in two different strings.

Hi @dilsher_khan,
You can just use:


It will return the number of characters from string.

1 Like

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 :slight_smile:


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

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.