If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Help with Java programming

I am trying to code the following information, however I am getting some error when I try to add array 5, than add array 6 and add both array 5 and 6 together to get the total sum

Using separate arrays, code the following information:

Array #1] 34232, John Doe, 3xcvbn
Array #2] 90323, Bill Reb, 2129uio
Array #3] 10021, Eric Quick, 3898qas
Array #4] 91920, Bob Bark, hjd2314
Array #5] 3, 2, 4, 5, 6
Array #6] 9, 7, 12, 15, 17
Display on the screen the following output:
Secret Route----Name-----Code
3xcvbn........John Doe......34232
2129uio......Bill Reb.........90323
3898qas.....Eric Quick.....10021
hjd2314......Bob Bark......91920
Output the SUM of array5 (The value that is returned should be obtained by adding up all the numbers in the array)
Output the SUM of array6 (The value that is returned should be obtained by adding up all the numbers in the array)
Output the SUM of array5 + array6

Well, I could be wrong but Im not so sure that in the java language there is a variable for Contacts as you are using. You are saying that an array of Contacts with the name friends is a new Contacts array with length 5. Now In Java without the declaration of what Contacts are it wont know. Arrays can be of other arrays, of strings, booleans, integers....Contacts must be defined somewhere in the code. Unless it is then the compiler won't know. What is a Contact? Where is it defined. That was my question..or questions...