fork download
  1. class LovePureImpure {
  2. static {
  3. System.out . println ( "Love is neither pure nor impure" );
  4. }
  5. public LovePureImpure() {
  6. System.out . println ( "Love is purely impure and impurely pure" );
  7. }
  8. public static void main( String[]
  9. args) {
  10. new LovePureImpure();
  11. Pure pure = null;
  12. Impure impure = new Impure();
  13. pure = new Pure();
  14. }
  15. }
  16. class Pure {
  17. static {
  18. System.out . println ( "I am pure Love" );
  19. }
  20. public Pure() {
  21. System.out . println ( "I am impure Love disguised as pure Love" );
  22. }
  23. }
  24. class Impure {
  25. public Impure() {
  26. System.out . println ( "I am
  27. impure Love" );
  28. }
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:26: error: unclosed string literal
System.out . println ( "I am
                       ^
Main.java:26: error: ';' expected
System.out . println ( "I am
                            ^
Main.java:27: error: unclosed string literal
impure Love" );
           ^
Main.java:27: error: not a statement
impure Love" );
       ^
4 errors
stdout
Standard output is empty