Convert int Value to a Different String Value [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to convert number to words in java I have some Java code that takes arguments, converts them to int values, does a little bit of math on them and then outputs them as int values up to 10. I need to take these output int values and convert them to another string. For example: int a = 6; int b = a + 2; System.out.print(b); That will print the value 8. I know that I can convert int b to a string: int a = 6; int