Course Solutions Uncategorized (Solved) : Java Create Java Program Reads Person S Name Person Things Print Things Person Class Usin Q38228826 . . . .

(Solved) : Java Create Java Program Reads Person S Name Person Things Print Things Person Class Usin Q38228826 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post