• Source
    1.  
    2. class Ideone
    3. {
    4. public static void main (String[] args) throws java.lang.Exception
    5. {
    6. //int to string using value of
    7. int x = 12345;
    8. String y = String.valueOf(x);
    9. }
    10. }