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 Cutting off a string after certain amount Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Cutting off a string after certain amount" Watch "Cutting off a string after certain amount" New topic
Author

Cutting off a string after certain amount

Maja Gralewska
Ranch Hand

Joined: Sep 26, 2008
Posts: 92
Hi, im trying to get a string to cut off after a specific amount of characters, but i cant seem to get it to work. Here is my code.



Any idea's? Thanks

Potrzeba jest matka wynalazków
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

Check out String's substring methods.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cutting off a string after certain amount
 
Similar Threads
Custom Formats JFormattedTextField
want to set limitation column at textfield/textarea(Urgent)
Spaces into a JtextField
JTextField set size limit.
How to make jTextField 's input unscrollable?