Question: Hope you give me a detailed answer. Use java 6. Write a Java program that stores a list of positive numbers into an array. The
6. Write a Java program that stores a list of positive numbers into an array. The end of the list is represented by the value -1. Write two methods, one to add a number at the end of the list and another one to add a number in a specific position in the list. Insert numbers 1 through 10 (in that order) into the array using the first method, print the values in the array and the insert 10 in position 3 and 100 in position 7 using the second method and print the array again 7. Write a Java program to remove duplicate values from an array. Get a list of numbers from the user, store them into an array remove the duplicates and print the contents of the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
