Computer Science, asked by deekshaac, 5 months ago

How to convert integer type data to strings and once again convert it back to integer in Java
Plzzz give correct information......​

Answers

Answered by Anonymous
1

Common ways to convert an integer

The toString() method. This method is present in many Java classes. It returns a string. ...

String.valueOf() Pass your integer (as an int or Integer) to this method and it will return a string: String.valueOf(Integer(123)); ...

StringBuffer or StringBuilder.

hope it helps you

Similar questions