Java - Convert int to String

1
2
3
4
int i = 3;
String s = "";
 
s = Integer.toString(i);

or

1
s = String.valueOf(i);