• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cutting off a string after certain amount

 
Maja Gralewska
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out String's substring methods.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic