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
|
816 Discussions
|
Please Login in order to post a comment
import java.io.; import java.util.;
public class Solution {
}
Java Logic
String s = String.valueOf(n);
String s = n +"";
String s=Integer.toString(n); just add this line and remove int s=sc.nextInt();