Tuesday, May 22, 2012

Convert int to String

What is the best way to convert the primitive type int to a String object?

int intValue = 1;
String stringValue = Integer.toString(intValue);

No comments:

Post a Comment