Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Help coderanch get a
new server
by contributing to the
fundraiser
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Java in General
length vs length()
Anand Divakaran
Greenhorn
Posts: 6
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
when using
string
objects , when can i use str.length and str.length();
str is a object reference of type string
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You may call the "length()" method on a String, and access a "length" member variable on an array. String does
not
have a "length" member variable as arrays (appear to) have.
[Jess in Action]
[AskingGoodQuestions]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Index of the last character of Strings
Concatenating Strings
Boolean type from 0 length string
about exception
how to do this? (exception) can u help me to fix?
More...