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