java.lang.String.valueOf(int inum)

The valueOf(int inum) method in Java used for converting int value into string.

java.lang.String.valueOf(int inum)

The valueOf(int inum) method in Java used for converting int value into string. Basically, inum converts the int value into a String. See the example below...

A simple example...

public static void main(String[] args)
{
String Str = String.valueOf(555);

// int values.
System.out.println(Str);

  }
  }

the output is:
555