Method call in main() is exactChange(userIn, coinValues) with userIn simply being scnr.nextInt() and int[] coinValues being an array with values {1, 5, 10, 25}
(literally nothing else of importance is in main() aside from those 3 things mentioned)
int numQuarters = userTotal / coinVals[3];
int numDimes = (userTotal - (coinVals[3] * numQuarters)) / coinVals[2];
int numNickels = ((userTotal - (coinVals[3] * numQuarters)) - coinVals[2] * numDimes) / coinVals[1];
int numPennies = (((userTotal - (coinVals[3] * numQuarters)) - coinVals[2] * numDimes) - coinVals[1] * numNickels) / coinVals[0];
if (numPennies > 1) {System.out.println(numPennies + " pennies"); }
else if (numPennies == 1) {System.out.println(numPennies + " penny"); }
if (numNickels > 1) { System.out.println(numNickels + " nickels"); }
else if (numNickels == 1) { System.out.println(numNickels + " nickel"); }
if (numDimes > 1) { System.out.println(numDimes + " dimes"); }
else if (numDimes == 1) { System.out.println(numDimes + " dime"); }
if (numQuarters > 1) { System.out.println(numQuarters + " quarters"); }
else if (numQuarters == 1) { System.out.println(numQuarters + " quarter"); }
} ```
Typed this up, while yes for homework, and ran it just fine on VSC, but upon throwing it to the auto-grader it threw the division by 0 error even though none of the array values, which are mainly used as the denominators, are 0. So any possible ideas why it could be throwing a / by zero exception? Not asking for a "do this" answer, though any pointers or nudges would be helpful and appreciated cause I think I've rewritten the calculations like 3 times.

imma ask directly and ask "whats it supposed to look like then"