Hackerrank-Solutions icon indicating copy to clipboard operation
Hackerrank-Solutions copied to clipboard

Java Int to String doest not work

Open Hiroyuki0487 opened this issue 3 years ago • 0 comments

this is the new code and it works


import java.io.*;
import java.util.*;
public class Solution {

    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
      int n=0;
      String s=Integer.toString(n);
      if (s==Integer.toString(n));
      System.out.println("Good job");
      
     }
}

Hiroyuki0487 avatar Apr 17 '22 17:04 Hiroyuki0487