3. Write a java program that stores these integers 10, 20, 30, 40, 20 in an array named nums. Write the code to count all the occurrences of 20 and then display the count.
Add the code to create a new integer array that has twice the number of elements as nums and assign the values in nums to the new array. Display the new array.
Try to think of a way for the program to calculate twice the number of elements for the new array.