File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes how do i get substring? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how do i get substring?" Watch "how do i get substring?" New topic
Author

how do i get substring?

Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245
String S = filename.ext
I need the "ext" part of this string.
How can I get that?
Thanks
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Like this:

Check out the API for java.lang.String and java.lang.StringBuffer for more methods.


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
Gemini Moses
Ranch Hand

Joined: Jan 04, 2001
Posts: 245
Thanks Jessica for your quick help.
I am done with my code!!
Thanks a lot
 
 
subject: how do i get substring?
 
Similar Threads
how can i get a String's encoding..
String representation of a org.w3c.dom.Document object
How to get a String contain ""?
Sending XML data to webservice
encoding and decoding in java