Ements Write Method Displays Elements Array 13 Samee T Integers Using Following Header Pub Q29613053
ements) Write a method that displays the same elements from an array 13 Samee t of integers using the following header: public static void Write a test program that prompts the user to enter 20 integers to a list and dis- plays the same integers separated by exctly one space. Here is a sample run: sameElements (ArrayList list) Enter twenty integers: 34 5 3 5 6 4 33 2 2 4 6 7 11 20 1 12 5 9 2 5Enter The same integers are: 5 5 642 2465 2 5 Show transcribed image text