String s1=Integer.parseInt(i) and
String s2=i+" ";
Originally posted by Ilja Preuss:
i + "";
basically compiles to
where append(i) basically leads to a call to String.valueOf(i). So I think it would make sense to simply call that method directly...
Most 1.5 implementations use StringBuilder here. The specification leaves it open for implementations.