You are viewing a single comment's thread. Return to all comments →
The exact answer is:
Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int flag = 0; if(n>= -100 && n<=100) { String s = String.valueOf(n); flag = 1; } if(flag==1) { System.out.println("Good job"); } else { 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 →
The exact answer is: