fork(17) download
  1. class Scratch {
  2.  
  3. public static void main(String[] args) {
  4. String i = "1";
  5. String j = "1";
  6. System.out.println(i == j); // false
  7. System.out.println(i.equals(j)); // true
  8. }
  9. }
  10.  
  11.  
Success #stdin #stdout 0.09s 27816KB
stdin
Standard input is empty
stdout
true
true