In this HackerRank Java Int to String problem you are given an integer n, you have to convert it into a string.

HackerRank Java Int to String problem solution

HackerRank Java Int to String problem solution

import java.util.*;
import java.lang.*;
import java.io.*;

class ConvertIntToString
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        int number = -782;
        String numberAsString = Integer.toString(number);
        System.out.println(numberAsString);
    }
}