Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java String Length

Status
Not open for further replies.

philk12

Programmer
Dec 29, 2005
20
US
How to dermine the (string) length of this declaration:

// File Name object
D fileNamex S O Class(*JAVA:'java.lang.String')
// trimmed File Name object
D tfileName S O Class(*JAVA:'java.lang.String')
 
I think you're assuming too much, philk12. The question means nothing to me as it stands, I'm afraid.

Tim
 
If you have variable that a string with that whole declaration in it, it's variable.length().

If you need the length of the pieces, it's fileNamex.length() and tfileName.length().

That looks more like a piece lopped out of a program in some other language. If that's the case, you use the functions in that language, not Java.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top