Java-aid / Hackerrank-Solutions

hackerrank solutions github | hackerrank all solutions | hackerrank solutions for java | hackerrank video tutorial | hackerrank cracking the coding interview solutions | hackerrank data structures | hackerrank solutions algorithms | hackerrank challenge | hackerrank coding challenge | hackerrank algorithms solutions github| hackerrank problem solving | hackerrank programs solutions | JAVAAID |all hackerrank solutions | Coding Interview Preparation
https://www.youtube.com/c/JavaAidTutorials?sub_confirmation=1
MIT License
1.73k stars 861 forks source link

Java Int to String doest not work #42

Closed Hiroyuki0487 closed 6 months ago

Hiroyuki0487 commented 2 years ago

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");

     }
}