integer.tostring java code example Example: integer.tostring java int myInt = 42; String myIntString = myInt.toString();