This example shows how to make a quadratic formula calculator. It does not account for cases where the discriminant is less than 0. The following video includes conditional statements to address this issue
http://javaandnetbeans.blogspot.com
▶️ DTube
▶️ IPFS