Salon membership fee Male = 600 Female = 500
If Foreigner +850
n for not foreign
f if foreign
my code is
public static void main(String[] args)
{
String gender, nat;
gender=JOptionPane.showInputDialog("Gender");
nat=JOptionPane.showInputDialog("Nationality");
if (gender=="m" & nat=="n"){
JOptionPane.showMessageDialog(null,"Gender:" +gender +"\nNationality"+nat+"Fee is 1450"
This code doesn't work so I don't really know other solutions.