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