how to implement simple methods that returns void or other types, and that can accept zero to multiple parameters. in java? code example
Example: Write a method that takes a parameter int size and returns an int[] array of that size.
public int[] makeArray(int size)
{
int[] arr = new int[size];
for(int i = 0; i < arr.length; i++)
{
arr[i] = 0;
}
return arr;
}