This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "subString" Watch "subString" New topic
Author

subString

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