You are viewing a single comment's thread. Return to all comments →
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); String s = Integer.toString(n); if(s instanceof String){ 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 →