• Post Reply Bookmark Topic Watch Topic
  • New Topic

String length  RSS feed

 
Kughan Paramalingam
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Everyone,
How can I find the length of a string variable.
Currently I have this....
col.getLyrics();
The getLyrics method simply retrieves a String.
I need to find the length of this String!
Your comments will be greatly appreciated
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kughan.
Welcome to JavaRanch. It's just String.length(). For example:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!