For example, for a single method that reads the elements of an array, how can the programmer allow either an array of objects or an array of primitives to be passed as the p
What is the context?
Your situation might be calling for generics, with which you could pass in Collection or Collection as you please.
Collection