This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: subString
 
Similar Threads
Doubt in Strings
string assignment
assertion
about string
is getting me confused