fork download
  1. public class InfiniteString {
  2.  
  3. public String equal(String s, String t)
  4. {
  5. return ((s + t).compareTo(t + s) == 0) ? "Equal" : "Not equal";
  6. }
  7.  
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class InfiniteString is public, should be declared in a file named InfiniteString.java
public class InfiniteString {
       ^
1 error
stdout
Standard output is empty