[Solved] Testing a quadratic equation

Not sure what trouble you’re having. I wrote: public class Quad { public static void main(String[] args) { double a = Double.parseDouble(args[0]); double b = Double.parseDouble(args[1]); System.out.println(Math.abs(b/a – 200.0)); if (Math.abs(b/a – 200.0) < 1.0e-4) { System.out.println(“first one”); } else { System.out.println(“second one”); } } } And some output: animato:~/src/Java/SO$ java Quad 1 200 0.0 … Read more

[Solved] I have 100+ button in the page and I have to click on each button and to verify the link and page which opens after clicking

After you click the first button a new DOM is loaded, so click on the second (and third …) will end with StaleElementReferenceException. You need to get all the href values first and then try them one by one. Just tried on web bbc.com with this code: package navi; import java.util.ArrayList; import java.util.List; import org.junit.After; … Read more