0
To count & print number of letter in a given string
2 Answers
+ 8
Use length() method. If the name of String variable is str, then the following statement should work:
System.out.println(str.length());
+ 5
No homework please.
Ask if you find difficulty in a piece of code.