2019-06-17 21:08:02 -07:00

12 lines
191 B
Plaintext

public class X {
void f(boolean isMale) {
String title;
if (isMale) {
title = "Mr.";
} else {
title = "Ms.";
}
System.out.println("title = " + title);
}
}