Java – Convert integer to string [duplicate] – Read For Learn



There are multiple ways:

  • String.valueOf(number) (my preference)
  • "" + number (I don’t know how the compiler handles it, perhaps it is as efficient as the above)
  • Integer.toString(number)

Leave a Reply

Your email address will not be published. Required fields are marked *