fork download
  1. public class Main {
  2. public static void main(String[] args) {
  3. int a = 1;
  4. int[] b = new int[]{ 1, 2, 3 };
  5. Integer c = new Integer(1);
  6.  
  7. System.out.printf("%d %d %d\n", a, b[2], c);
  8. test(a, b, c);
  9. System.out.printf("%d %d %d\n", a, b[2], c);
  10. }
  11.  
  12. public static void test(int a, int[] b, Integer c) {
  13. a = 10;
  14. b = new int[]{ 10, 20, 30 };
  15. c = new Integer(10);
  16. }
  17. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
1 3 1
1 3 1