The quadratic formula is written in java