wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 19654
    
  18

Check out String's substring methods.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
 
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