Question
Sets // We had the students from the following countries in the cohort #1 of the bootcamp: United States, United States, Ukraine, Mexico // In
Sets // We had the students from the following countries in the cohort #1 of the bootcamp: United States, United States, Ukraine, Mexico // In the cohort #2 we had the following countries: United States, Canada, United States, Mexico // Print out the list of all unique countries of every cohort separately (order doesn't matter) // Print out all unique countries from all cohorts in one line (order doesn't matter) // Print out all unique countries from all cohorts in alphabetical order // Print out the common countries from both cohorts
Maps // Declare a HashMap with Integer values for Street Numbers & String values for Names: // (1000, Liam), (1001, Noah), (1002, Olivia), (1003, Emma), (1004, Benjamin), (1005, Evelyn), (1006, Lucas) // Find the name of the person who lives at 1004 based on the street number // Next, print out all the odd number streets and its corresponding names
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started