fork(61) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. String firstString = "Test123";
  10. String secondString = "Test" + 123;
  11. if (firstString.equals(secondString)) {
  12. System.out.print("Equal");
  13. }
  14. }
  15. }
Success #stdin #stdout 0.09s 320512KB
stdin
Standard input is empty
stdout
Equal