Quote:
(e.g)தமிழ்
it counts as 5..(i.e)"த", "ம", "ி", "ழ" and "்".
but i want to count it as 3(i.e)"த", "மி" and "ழ்"
Your problem comes from the fact that some chars are compound of more than 1 char.
Some chars have sufix
aka "மி" is compound of a leading char "ம" and a suffix char "ி".
I don't know your alphabet, but rather than reading chars 1 by 1 like with Latin alphabet, you have to detect if a char have a suffix or not.
Either you need a list of all combination of char+suffix, either you have to check if actual char is followed by a suffix char.
In any case you need to change your code to handle the situation.
[Update]
Quote:
yes i have possible letters in a string
String s = "ஃஅஆஇஈஉஊஎஏஐஒஓஔக்ககாகிகீகுகூகெகேகைகொகோகௌங்ஙஙாஙிஙீஙுஙூஙெஙேஙைஙொஙோஙௌச்சசாசிசீசுசூசெசேசைசொசோசௌஞ்ஞஞாஞிஞீஞுஞூஞெஞேஞைஞொஞோஞௌட்டடாடிடீடுடூடெடே";
Then you have to check if actual char and next one are in the string.