Final Answer:
To enhance the Multi-Scene JavaFX application, you should implement three new features. Feature A involves transforming friend names from strings to objects with two data attributes: name and phone number. Feature B requires reading initial data from a file on application startup and saving updated data to the same file when closing the application. Feature C entails adding a Refresh button on the play screen to regenerate another friend name.
Step-by-step explanation:
For Feature A, you'll need to create a Friend class with attributes for name and phone number, ensuring that the application now deals with instances of this class rather than simple string names. This requires modifying the existing code to incorporate the new class and update the display accordingly.
For Feature B, implement file I/O operations to read and save data. When the application starts, read the initial data from a file, and when it closes, save any updated information back to the same file. This ensures persistent storage of changes made during runtime.
Feature C involves adding a Refresh button to the play screen, triggering the generation of a new friend name. This requires implementing an event handler for the button, ensuring that it updates the display with a randomly selected friend name each time it is pressed. These three features collectively enhance the application's functionality, providing a more dynamic and interactive user experience.