Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SoftUni {
- static void change(int[] numbers ) {
- numbers[0] ++;
- }
- public static void main(String[] args) {
- int[] arr = new int[] {1,2,3};
- change(arr);
- System.out.println(arr[2]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement