This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
jQuery in Action, 2nd edition
subject: subString
Similar Threads
Doubt in Strings
string assignment
is getting me confused
about string