Java Int to String

Sort by

recency

|

782 Discussions

|

  • + 0 comments

    just print "good job" without any reading.

  • + 0 comments
    try {
       Scanner in = new Scanner(System.in);
       int n = in .nextInt();
       in.close();
       //String s=???; Complete this line below
        String s =Integer.toString(n);
       
       if (n == Integer.parseInt(s)) {
        System.out.println("Good job");
       } else {
        System.out.println("Wrong answer.");
       }
      } catch (DoNotTerminate.ExitTrappedException e) {
       System.out.println("Unsuccessful Termination!!");****
    
  • + 0 comments

    String s = String.valueOf(n);

  • + 0 comments
    Given task it to convert the number to string: I thought Concatination is the easy and best way
         String s=n+"";
    
  • + 0 comments

    extremely poorly worded Problem