Code:public static void main(String[] args) { double cups, ounces; System.out.println("Enter number of cups"); cups = getCups(); :wave: ounces = CupsToOunces(cups); displayResults(cups,ounces); System.exit(0); } public static double getCups(double numberOfCups) { Scanner input = new Scanner(System.in); numberOfCups = input.nextDouble(); return numberOfCups;
Can you guys advise on the method call getCups();.