fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*; // Stream Ein-/Ausgabe
  4.  
  5. public class Main
  6. {
  7. public static void main (String[] args)
  8. {
  9. int zahl1 = 4;
  10. int zahl2 = 2;
  11. int temp;
  12.  
  13. System.out.print("\Pragram SWAP in Java\n");
  14. System.out.println("Zahl1=" + zahl1 + "zahl2=" + zahl2 + " Zwischenspeicher");
  15. temp = zahl1;
  16. System.out.println("Zahl1=" + zahl1 + "zahl2=" + zahl2 + " Zwischenspeicher");
  17. zahl1 = zahl2;
  18. System.out.println("Zahl1=" + zahl1 + "zahl2=" + zahl2 + " Zwischenspeicher");
  19. zahl2 = temp;
  20. System.out.println("Zahl1=" + zahl1 + "zahl2=" + zahl2 + " Zwischenspeicher");
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
33

compilation info
Main.java:13: error: illegal escape character
		System.out.print("\Pragram SWAP in Java\n");
		                   ^
Main.java:21: error: reached end of file while parsing
}
 ^
2 errors
stdout
Standard output is empty