9899100101102103104105
if(dropProfession.getText().equals("Farmer")){ partyLeader = new Farmer(leaderName); } else if(dropProfession.getText().equals("Banker")){ partyLeader = new Banker(leaderName); } else { partyLeader = new Carpenter(leaderName); } }