File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
length vs length()
Joined: Jul 20, 2007
Sep 15, 2007 12:02:00
objects , when can i use str.length and str.length();
str is a object reference of type string
author and iconoclast
Joined: Jul 08, 2003
Sep 15, 2007 12:39:00
You may call the "length()" method on a String, and access a "length" member variable on an array. String does
have a "length" member variable as arrays (appear to) have.
[Jess in Action]
I agree. Here's the link:
subject: length vs length()
Index of the last character of Strings
Boolean type from 0 length string
how to do this? (exception) can u help me to fix?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014