fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. public class ChangeParam
  9. {
  10. public static void main(String[ ] args)
  11. {
  12. int x = 1;
  13. double y = 3.4;
  14. System.out.println(x + “ “ + y);
  15. changeUs(x, y);
  16. System.out.println(x + “ “ + y);
  17. }
  18. public static void changeUs(int a, double b)
  19. {
  20. a = 0;
  21. b = 0.0;
  22. System.out.println(a + “ “ + b);
  23. }
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:14: error: illegal character: '\u201c'
		System.out.println(x + ? ? + y);
		                       ^
Main.java:14: error: illegal character: '\u201c'
		System.out.println(x + ? ? + y);
		                         ^
Main.java:14: error: not a statement
		System.out.println(x + ? ? + y);
		                           ^
Main.java:14: error: ';' expected
		System.out.println(x + ? ? + y);
		                              ^
Main.java:16: error: illegal character: '\u201c'
		System.out.println(x + ? ? + y);
		                       ^
Main.java:16: error: illegal character: '\u201c'
		System.out.println(x + ? ? + y);
		                         ^
Main.java:16: error: not a statement
		System.out.println(x + ? ? + y);
		                           ^
Main.java:16: error: ';' expected
		System.out.println(x + ? ? + y);
		                              ^
Main.java:22: error: illegal character: '\u201c'
		System.out.println(a + ? ? + b);
		                       ^
Main.java:22: error: illegal character: '\u201c'
		System.out.println(a + ? ? + b);
		                         ^
Main.java:22: error: not a statement
		System.out.println(a + ? ? + b);
		                           ^
Main.java:22: error: ';' expected
		System.out.println(a + ? ? + b);
		                              ^
12 errors
stdout
Standard output is empty