Guest User

Untitled

a guest
Oct 15th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public class CallTest {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. int n = 8;
  6. int[] a = new int[] {5, 6, 7};
  7. modify(n, a);
  8. System.out.println(n + " " + a[0]+ " " + a[1] + " " + a[2]);
  9. }
  10.  
  11. static void modify(int x, int[] y) {
  12. x++;
  13. y[1] = x;
  14. }
  15. }
Add Comment
Please, Sign In to add comment