Hacker rank 11th java problem solution

11. JAVA INT TO STRING
import java.util.*;
import java.security.*;
public class Solution {
public static void main(String[] args) {

DoNotTerminate.forbidExit();

try {
Scanner in = new Scanner(System.in);
int n = in .nextInt();
in.close();
//String s=???; Complete this line below

//Write your code here
String s = Integer.toString(n);

Compiler Message
Success
Input (stdin)Download
-100
Expected OutputDownload
Good job

Comments

Popular posts from this blog

Amazon Web Services

Google Code-In mentorship experience :)

Hacker Rank all java and python problem solutions