You are viewing a single comment's thread. Return to all comments →
public class Solution { public static void main(String[] args) { int I; String converted; Scanner scan = new Scanner(System.in); I = scan.nextInt(); try { if (I<=100 && I>=-100) { converted = String.valueOf(I); System.out.println("Good job"); } } catch(Exception e) { System.out.println("Wrong answer"); } } }
Seems like cookies are disabled on this browser, please enable them to open this website
Java Int to String
You are viewing a single comment's thread. Return to all comments →