Advertisement
Guest User

Untitled

a guest
May 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. int x = 5;
  2. int[] b = {1,2};
  3. int g =Products.Test(x,b);
  4.  
  5. System.out.println(x);
  6. System.out.println(g);
  7. for (int o: b
  8. ) {
  9. System.out.println(o);
  10.  
  11. }
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. INNA KLASA
  19.  
  20. static int Test(int t, int[] b)
  21. {
  22. int w = t + b[0];
  23. t++;
  24. b[0]++;
  25. return w;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement