I have two array's
Array1[1,3,5,7,4,0,8]
Array2[1,5,8,3,4,2,9]

What I would like to achieve is an output count = 3( three of the numbers 3,5,8 from Array2 are in Array1 but in the wrong place) using Math.min.

Can someone explain this process to me please. Thank you

Thank you code rum , that article helped alot

Write a program to copy the Array A={22,33,44,55,66,77,88,99} to Array B
(empty) and print the Array B.@

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.