File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes subString Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "subString" Watch "subString" New topic


Mark Henryson
Ranch Hand

Joined: Jul 11, 2005
Posts: 200

In the above code why the subString() is not working. It shouw some error message:

Patrick van Zandbeek
Ranch Hand

Joined: Aug 17, 2005
Posts: 37
try it with s5.substring instead of s5.subString

In these cases it's always best to check the jdk api documentation for the method pointed to by the error message, s5.subString in this case.

Just look up the String class and check it's methods to see if the method name and the arguments are in order.
[ August 23, 2005: Message edited by: Patrick van Zandbeek ]

u is a letter, not a word.
suresh koutam
Ranch Hand

Joined: Dec 29, 2004
Posts: 30
i think it is substring...not subString...

SCJP aspirant<br />SCWCD aspirant
I agree. Here's the link:
subject: subString
It's not a secret anymore!