public static void Who_Pay_Tax(String sexe ,int age){
if(sexe=="Homme" && age>=20){
System.out.println("il faut payer ses impots");
}else if (sexe=="Femme" && age>=18 && age<=35){
System.out.println("il faut payer ses impots");
}else{
System.out.println("exonéré d'impôt");
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Who_Pay_Tax("Femme" ,17);
}