Advertisement
Guest User

Removing chars like a pro

a guest
Mar 24th, 2013
1,316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.16 KB | None | 0 0
  1. //this removes the last three characters of "chord"
  2. String noteName = new StringBuffer(new StringBuffer(chord).reverse().toString().substring(3)).reverse().toString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement