Original code:
public class QuadraticEquation { public static Roots findRoots(double a, double b, double c) { throw new UnsupportedOperationException("Waiting to be implemented."); } public static void main(String[] args) { Roots roots = QuadraticEquation.findRoots(2, 10, 8); System.out.println("Roots: " + roots.x1 + ", " + roots.x2); } } class Roots { public final double x1, x2; public Roots(double x1, double x2) { this.x1 = x1; this.x2 = x2; } }
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.