14.03 Name Formatter JavaFX | Starting Out With Java

Опубликовано: 29 Июнь 2026
на канале: The Blind Programmer
77
2

#java #programming #programmingtutorials #tutorial

Name Formatter

Create a JavaFX application that lets the user enter the following pieces
of data:

1) The user’s firsts name
2) The user’s middle name
3) The user’s last name
4) The user’s preferred title (Mr., Mrs.,Ms.,Dr.,etc.)

Assume the user has entered the following data:

1) First name: Kelly
2) Middle name: Jane
3) Last name: Smith
4) Title: Ms.

The application should have buttons that display the user’s name formatted
in the following ways:

Ms. Kelly Jane Smith
Kelly Jane Smith
Kelly Smith
Smith, Kelly Jane, Ms.
Smith, Kelly Jane
Smith, Kelly