When I write like this:
public class test { void mainx() { int fyeah[] = {2, 3, 4}; smth(fyeah); System.out.println(\"x\"+fy
The int is a value type so 5 is passed directly into smth which can only modify the local copy. An array on the other hand is a reference type so the elements of that array can be modified.
int
smth