I am new to the site, for the record.
I have looked around but I have not found the answer that I want.
Let's say I have int[] arrayA and int[] arrayB and I'm letting the user input values for however many elements I set, five in this case.
So:
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int[] arrayA = new int[5];
int[] arrayB = new int[5];
for (i = 0; i < arrayA.length; i++)
{
arrayA[i] = input.nextInt();
}
for (i = 0; i < arrayB.length; i++)
{
arrayB[i] = input.nextInt();
}
}
public static int[] arrayEquality(int[] a, int[] b)
{
if (a[] != b[])
{
return false;
}
}
If you can help it, please don't use anything beyond methods, arrays, and such. I still don't have an entirely good grip on what I'm learning in class.