Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CallTest {
- public static void main(String[] args) {
- int n = 8;
- int[] a = new int[] {5, 6, 7};
- modify(n, a);
- System.out.println(n + " " + a[0]+ " " + a[1] + " " + a[2]);
- }
- static void modify(int x, int[] y) {
- x++;
- y[1] = x;
- }
- }
Add Comment
Please, Sign In to add comment