We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Java Int to String
- Discussions
Java Int to String
Java Int to String
Sort by
recency
|
722 Discussions
|
Please Login in order to post a comment
String s = Integer.toString(n); //this is also one approach to solve this problem
String s=String.valueOf(n);
this is only line we have to use
This is a crazy task which I really don't understand. The requirement is really badly stated, or I'm just stupid. The following bit of code passes all tests, simply reading the input, ignoring the value and printing 'Good Job' regardless
** String s=Integer.toString(n);**