//编写一个程序,用户输入两个数,求出其加减乘除,并用消息框显示计算结果.//MengYao,2015,10,6 import javax.swing.JOptionPane;public class Calculator { public static void main(String args[]) { String str1,str2; int number1,number2,add,sub,mul,div; str1=JOptionPane.showInputDialog("Please…