Hi so im a new memeber and i really need help with this problem. i have no experience on arrays and i have a test on it very soon =/

one of the problems on the test is similar to this one please help me solve it

given the following three int arrays write the appropriate java code that will copy the largest of the valeues at the same relative index position of list1 and list2 into the array largestValues. The print all three arrays, the elements of the same index position for all three arrays on the same line.

int[] list1 = {24, 33, 45, 21, 16, 90, 6, 12, 19, 72, 38, 14}
int[] list2 = {12, 36, 54, 21, 19, 81, 19, 8, 41, 54, 35, 14}
int[] largestValues = new int [list.length];

Please see the Announcement regarding homework help:
http://www.daniweb.com/forums/announcement9-2.html

If you have a test on arrays then you probably covered them in class. Time to crack the book and review your notes. If you have specific questions about some things that are giving you trouble, post the code you have along with your questions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.