if (textinput.equals(“Haiti”))
{
JOptionPane.showMessageDialog(null, "Haiti is currently in URGENT need of aid!");
firstdonate = JOptionPane.showInputDialog("How much would you like to donate to Haiti?");
firstdonate = Integer.parseInt(totalcharity);
moneyleft = (donatetotal-firstdonate);
System.out.println( "You have "+moneyleft+" pounds left.");
This is the error message that keeps appearing:
ages2.java:44: incompatible types
found : java.lang.String
required: int
firstdonate = JOptionPane.showInputDialog(“How much would you like to donate to Haiti?”);
How would i solve this error? thank you