Question 1 You are provided with the following integers: 34, 12, 67, 89, 12, 34, 19, 20, 9, 67 Write a Java program usin
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 1 You are provided with the following integers: 34, 12, 67, 89, 12, 34, 19, 20, 9, 67 Write a Java program usin
Question 1 You are provided with the following integers: 34, 12, 67, 89, 12, 34, 19, 20, 9, 67 Write a Java program using NetBeans that will do the following: a. Add the above integers into an array called test1. b. Print all the elements in the array. Sort all the elements in the array. Remove all the duplicates in the array and copy them to a new array test2. Print the array with all the duplicates removed. C. d. e. Below is a screenshot of the expected program in operation: Output - ITJVA2VAQn1 (run) x run: All elements in Test1 array : 34 12 67 89 12 Test2 array with duplicates removed : 34 12 89 9 67 BUILD SUCCESSFUL (total time: 0 seconds) 34 20 19 19 Figure 1 - Program Output 20 9 67 Source: Makura S.M (2022).