JAVA: Method help!
Hi, I need to create a method that inserts a value into a pre-exisiting array (list) that meets the following (preferably wihtout breaks in the code, and without the use of sorting algorithms):
insert (int): void
1.)insert an integer into the array so that the elements are in ascending order
2.) do not allow for duplicates in the array
3.) if the array is full, do not insert the value
4.) do not sort the array