Description
The following workshop lets you practice basic java coding techniques, creating classes, methods, using arrays, Java I/O, inheritance, polymorphism, Exceptional Handling, JavaFx (GUI), Lambda expressions, Functional Interface, Collection Framework.
Task 1:
In workshop 6 we used baby name ranking files, this workshop going to use the same files,
Part – 1.
- Write a program that prompts the user to enter one of the filenames from baby ranking and displays the names that are used for both genders in the file.
- Use Lists to store the names and find common names in two lists.
Here is a sample run:
Enter a file name for baby name ranking: babynamesranking2010.txt
68 names used for both genders
They are Charlie Emerson Morgan …
Part – 2.
- Sort all names for boys and girls in their lists.
- Remove the duplicates.
- Display the sorted names individually
- Design out own output for this part.
- For sorting method from Collection interface.
Task 2: (Design your own output for this you are free to use JavaFX or not)
Assume that 25 countries and their capitals are stored in a map. Your program should prompt the user to enter a country and should display the capital for that country.






