how to convert and int to a string in java code example Example: java int to string Integer.toString(n) // converts n to String