currentSize++ When you are done, you can discard any excess (unfilled) elements: inputs-Arrays.copyof(inputs, currentSize); The following program puts these algorithms to work, solving the task that we set
OR
OR
currentSize++ When you are done, you can discard any excess (unfilled) elements: inputs-Arrays.copyof(inputs, currentSize); The following program puts these algorithms to work, solving the task that we set