0

To count & print number of letter in a given string

3rd Aug 2017, 5:25 PM
Asmi Singh
Asmi Singh - avatar
2 odpowiedzi
+ 8
Use length() method. If the name of String variable is str, then the following statement should work: System.out.println(str.length());
3rd Aug 2017, 6:25 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 5
No homework please. Ask if you find difficulty in a piece of code.
3rd Aug 2017, 6:24 PM
Sachin Artani
Sachin Artani - avatar