I dunno what to do. I get the following error:
operator cannot be applied to java.lang.strin g int
operator cannot be applied to java.lang.strin g int
Code:
public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("Celsius")) { C = JOptionPane.showInputDialog("Enter temperature here: "); a1 =Double.parseDouble(C); Can = (C *9/5) + 32; JOptionPane.showMessageDialog(null, + Can + "Fahrenheit."); }
Comment