fork download
  1. @Override
  2. public boolean equals(Object obj) {
  3. if ((this.re == obj.re)&&(this.im == obj.im)){
  4. return true;
  5. } else {
  6. return false;
  7. }
  8.  
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:2: error: class, interface, or enum expected
        public boolean equals(Object obj) {
               ^
Main.java:5: error: class, interface, or enum expected
            } else {
            ^
Main.java:7: error: class, interface, or enum expected
            }
            ^
3 errors
stdout
Standard output is empty