Professional Documents
Culture Documents
valueOf(c)); }else if(r2.isSelected()==true){ int c=a-b; lbl2.setText(String.valueOf(c)); }else if(r3.isSelected()==true){ int c=a*b; lbl2.setText(String.valueOf(c)); }else if(r4.isSelected()==true){ int c=a/b; lbl2.setText(String.valueOf(c)); }else{ JOptionPane.showMessageDialog(null, "Sorry", "No Option" , JOptionPane.PLAIN_MESSAGE); } } });