I have a following question. Suppose that I initialized an array like this:
Object[] params = { new
String (ProductName), new String(SupplierName) };
Suppose now I want the same type of array but with different values, though I cannot reuse it like this later on:
Object[] params = { new String(SupplierId) };
Looks like now I need to either initialize the array with 'null' values or create a new array, e.g. 'params1' (which is kind of wasteful and complicates readability of code). Is there other solution? Hmm...