0
How to use JOptionPane to print out put of your method?
How to call this method--> printPrime(num,num1);
1 Réponse
+ 3
You can use showMessageDialog
JOptionPane.showMessageDialog(frame, Mymsg);
If you want to print the function it must return something. So I'm going to assume the method already returns something.
Command:
JOptionPane.showMessageDialog(null, printPrime(x, y));