Question: In Java, Thanks.import java.util.Scanner; import java.io . * ; import java.util. * ; public class dufus { / / 1 public static void main (
In Java, Thanks.import java.util.Scanner;
import java.io;
import java.util.;
public class dufus
public static void mainString args
int x;
int y;
Scanner inputnew ScannerSystemin;
System.out.printlnPlease enter a number: ;
xinput.nextInt;
System.out.printlnPlease enter another number: ;
yinput.nextInt;
System.out.printlnYour first number was: x;
System.out.println;
System.out.printlnYour second number was: y;
System.out.printlnproductx y;
I cant figure out whats wrong with this code. Its supposed to accept two integers from the user and return the product using recusive method. Can you help?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
