How to get 100% code coverage in recursive method?
I have such method in my program public int getX() { System.out.println(“Input x:”); int rez = 0; Scanner scan1 = new Scanner(System.in); // Checking that the entered value is an integer if (scan1.hasNextInt()) { int num = scan1.nextInt(); if ((num >= 0) && (num <= 100)) // range of acceptable values { rez = num; … Read more