Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public class SoftUni {
  2.  
  3. static void change(int[] numbers ) {
  4. numbers[0] ++;
  5. }
  6. public static void main(String[] args) {
  7.  
  8. int[] arr = new int[] {1,2,3};
  9. change(arr);
  10. System.out.println(arr[2]);
  11.  
  12.  
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement