|
does anyone know how to pass a method called processInts an array that contains the first five even numbers. I need about 2 different ways of doing it
thanks
|
|
|
public class ArrayTest
{
public static void main(String[] args)
{
int[] firstFiveEven = { 2, 4, 6, 8, 10 };
processInts(firstFiveEven);
}
private static void processInts(int[] intArray)
{
}
}
|
|
|
|
|
|
|
|
|
|