You are viewing a single comment's thread. Return to all comments →
String s = Integer.toString(n); is showing an error
toString() used for objects
Can't you just use String s = String.valueOf(n);
Yes we can.
Java Int to String
You are viewing a single comment's thread. Return to all comments →
String s = Integer.toString(n); is showing an error
toString() used for objects
Can't you just use String s = String.valueOf(n);
Yes we can.