my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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
JTextField set size limit.
How to make jTextField 's input unscrollable?
want to set limitation column at textfield/textarea(Urgent)
Spaces into a JtextField
Custom Formats JFormattedTextField