I am trying to write a method that returns the list of factors when I input an integer.
When I run it using my main I get an error message:
Exception in
thread "main" java.lang.ArithmeticException: / by zero
at QuadraticEqn.getIntegerFactors(QuadraticEqn.java:51)
at QuadraticEqn.main(QuadraticEqn.java:9)
What am I doing wrong?