java
create java program that reads person’s name and each person hassome things. And then print the things that each person has. Thisclass is using HashMap and HashSet
(the print order is not considered, it is order by hash)
the example of output is this
2//by user
sophia iphone apple banana iphone //by user
ellen laptop macbook macbook pen laptop //by user
//output come out like this
ellen: banana apple iphone
sophia: laptop macbook pen
here is my code that I’m going to use
import java.util.Scanner;
import java.util.Iterator;
import java.util.HashSet;
import java.util.HashMap;
class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
HashMap<String,HashSet<String>> sellers = new HashMap<>();
//need code
for (String
PayPal Gateway not configured
PayPal Gateway not configured