BarneyInTechno
Junior Member
hey, how would you pass an array of objects in java through the parameters? if the array was called, ver, would u jsut send it in by putting in the methodName(ver); ?
Also, how would i accept it? would i accept an array of objects the same way as an array of integers? Would it just be
public void methodName ( Objects [] blah, int size )
{
Objects []array = new Objects[size];
array = blah;
}
Is that code correct? and also if i wanted to have the array inside methodName change the one coming in through the parameters, how would id o that? thanks =)
Also, how would i accept it? would i accept an array of objects the same way as an array of integers? Would it just be
public void methodName ( Objects [] blah, int size )
{
Objects []array = new Objects[size];
array = blah;
}
Is that code correct? and also if i wanted to have the array inside methodName change the one coming in through the parameters, how would id o that? thanks =)