Java - Arrays and Methods
Posted: Tue Mar 02, 2004 6:05 pm
Just learning the basics so bear with me.
I've tried searching google for this, but I'm not exactly sure what to look for.
Basically, I'm trying to change this:
to use arrays.
or in other words, what's the correct syntax for passng arrays through methods (both to them and returning an array).
thanks.
I've tried searching google for this, but I'm not exactly sure what to look for.
Basically, I'm trying to change this:
Code: Select all
public static int size(){
int size = list.size();
return size;
}or in other words, what's the correct syntax for passng arrays through methods (both to them and returning an array).
thanks.