"Write the definition of the method doubleArray that initializes the elements of beta to two times the corresponding elements of alpha." is what it says I have to do but i can't figure out exactly how to do it. Any suggestions on how to do this? Here's my code:
import java.util.*;
public class Assignment 8
{
static Scanner console = new Scanner(System.in);
public static void main(String[] args)
{
int[][]inStock = new int[10][4];
int[]alpha = new int[20];
int[]beta = new int[20];
int[]gamma = {11,13,15,17};
inputArray(alpha);
doubleArray(alpha);
}
public static void inputArray(int[] listA)
{
System.out.println("Enter 20 numbers:");
for (int i = 0; i < listA.length; i++)
{
listA[i] = console.nextInt();
}
}
public static void doubleArray(int[] listA,int[] listB)
{
}
}