Solved how to use strlen() in java.

May 28, 2011 at 02:46:56
Specs: Linux i686
i declare a string, now i want to find its length like:
String x="Fauziya";
int i=strlen(x);

bt its not working,plz help me out..


See More: how to use strlen() in java.

Report •

#1
May 28, 2011 at 03:20:26
✔ Best Answer
Use:

x.length()

rather than strlen.


Report •

#2
May 28, 2011 at 03:57:21
Thanks jack,ur answer helped me.....
thanks a lot.

Report •
Related Solutions


Ask Question