SHARE
TWEET

Removing chars like a pro

a guest Mar 24th, 2013 1,188 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //this removes the last three characters of "chord"
  2. String noteName = new StringBuffer(new StringBuffer(chord).reverse().toString().substring(3)).reverse().toString();
RAW Paste Data
Top