Java question need asap

jimmymike

  

Write a method that will compare the content of 2 arrays one-cell-at-a-time and will display either "The values match" or "The values don't match"

Assume that both lists have the same length and initialize them to the following values:

list1: 1 2 3 4 5 6 7 8

list2: 1 2 3 3 3 6 7 8

public static int similar (int[] list1, int[] list2)

Write a test program that  calls the method .

The program should display something lik

The values match

The values match

The values match

The values don't match

The values don't match

The values match

The values match

The values match

    • 7 years ago
    • 4
    Answer(1)

    Purchase the answer to view it

    • Question.java