0

How to use JOptionPane to print out put of your method?

How to call this method--> printPrime(num,num1);

7th Jun 2017, 4:39 PM
Ryn
Ryn - avatar
1 ответ
+ 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));
7th Jun 2017, 5:02 PM
Rrestoring faith
Rrestoring faith - avatar