Clean up statements
Remove pointless arithmetic expressions
Replace use of StringBuffer with StringBuilder
Remove unnecessary boxing
Remove unnecessary unboxing
Better iteration\!
Don't convert empty arrays, that's wasteful
Use append() properly.
Remove redundant explict array creations
Remove redundant type casts