change int primitive tostring code example Example: java int to string Integer.toString(n) // converts n to String