How can I complete Java code with a single statement to assign the number of one dollar bills (numOnes) based on the amountToChange using the % operator? The scenario is that a cashier is distributing change using the maximum number of five dollar bills first, followed by one dollar bills.