My project is to create a currency converter and I can't seem to connect an if statement to the choices of the user.
import javax.swing.JOptionPane;
public class Test {
    public static void main(String args[]){
    double CanadianDollar = .9813;
    double Euro = .757;
    double IndianRupee = 52.53;
    double JapaneseYen = 80.92;
    double MexicanPeso = 13.1544;
    double BritishPound = .6178;
    String input; 
    Object[] possibilities = {"Canadian Dollar", "Euro", "Indian Rupee", "Japanese Yen",
            "Mexican Peso", "British Pound"};
    String currencyChosen = (String) JOptionPane.showInputDialog( null,
         "What currency would you like to start with?:",
         "Currency Converter",
         JOptionPane.QUESTION_MESSAGE,
         null,
         possibilities,
         null);
    JOptionPane.showMessageDialog(null, "You chose to start from " + currencyChosen);
    Object[] possibilitiesToChoose = {"Canadian Dollar", "Euro", "Indian Rupee", "Japanese Yen",
            "Mexican Peso", "British Pound"};
    String convertTo = (String) JOptionPane.showInputDialog( null,
         "What currency would you like to convert to?:",
         "Currency Converter",
         JOptionPane.QUESTION_MESSAGE,
         null,
         possibilities,
         null);
    JOptionPane.showMessageDialog(null, "You chose to convert from " + currencyChosen + " to " + convertTo);
    if (currencyChosen = "Canadian Dollar")   <- This is not working
    }
}
 
     
     
    