-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathNameTest.java
24 lines (23 loc) · 861 Bytes
/
NameTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public class NameTest {
public static void main(String[] args) {
Name name = new Name(
"Mr.",
"Bob",
"Manfred",
"Jinkens",
"Jones",
"Jinkens",
"III",
"Ph.D."
);
System.out.printf("%s %s %s %s (formerly %s) %s, %s\n",
name.getTitle(),
name.getFirst(),
name.getMiddle(),
name.getSurname(),
name.getSurnameParent1(),
name.getSuffixGenerational(),
name.getSuffixProfessional()
);
}
}