help me pls?
I have here the code, it's a method call...
What the code does is that, the main function calls asks for a number from the user, then the method(function) heading displays the output and never returns the value from the man function... if you got confused on my details, here's my code, maybe you guys can figure this out...thanks ^^
public class method4
public static void main (String args)
int n1 = Integer.parseInt(JOptionPane.showInputDialog("Enter 1st number: "));
int n2 = Integer.parseInt(JOptionPane.showInputDialog("Enter 2nd number: "));
int prod = n1 * n2;
public static void prod(n1 , n2)
JOptionPane.showMessageDialog(null, "The Product is: " +prod(n1 , n2));