I am once again experimenting and Only to find out that java is pass by value,
how do I actually manipulate a method or an array that has been pass to another method?
for example
int[]a ={1,2,3,4,5,6};
modify(a);
________________________
void modify(int[] aTest){
aTest[1]=2;
}
//take note that those arrays are from a different files/class
now the thing is how would I manipulate the reference/original array? I am almost getting the topic but I just need clarification.