Question: Im having trouble on how I would complete this program using Hash sets. As the problem requires me to use Hash sets and read the
Im having trouble on how I would complete this program using Hash sets. As the problem requires me to use Hash sets and read the names from a text file.
HashSet Mexico = new HashSet(); HashSet Cuba = new HashSet();

John Mexico
William Mexico
Susan Mexico
Jack Mexico
Jennifer Mexico
Sophia Mexico
Emma Mexico
Olivia Mexico
Isabella Mexico
Zoe Mexico
John Cuba
William Cuba
Susan Cuba
Jack Cuba
Jennifer Cuba
Sophia Cuba
Emma Cuba
Olivia Cuba
Ava Cuba
Tom Cuba
Lily Cuba
John Jamaica
William Jamaica
Olivia Jamaica
Ava Jamaica
Tom Jamaica
Lily Jamaica
Jessica Jamaica
Mexico Cuba Jamaica John William Susan Jack Jennifer Sophia Emma Olivia Isabella Zoe John William Olivia Ava Tom Lily Jessica John William Susan Jack List of people who have visited Mexico . Cuba . Jamaica Jennif er Sophia Emma Olivia Ava Tom Lily Mexico or Cuba or Jamaica Mexico and Cuba and Jamaica Mexico and Cuba but not Jamaica . Cuba but not Mexico not Jamaica
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
