Is there a way to insert an element at the front of an array? I was told there is a method other than using a circular array. We need operations like retrieval and adding to be O(1) time so things like ArrayUtil is out of the question. ie. a primitive array is needed.
edit: the thread "Java Arrays how to add elements at the beginning" does not have any methods tht follow a primitive array, the solutions are all using lists or other things like ArrayUtil.