I am having a array like String[] selectedJobs = {"job,1","job,2", "Job2,1", "job3,1"};
I want to extract information like
Job -> 1,2 Job2 -> 1 Job3 -> 1 Map<String, List<String>> jobs = new HashMap<String, List<String>>(); and I want to store each job with corresponding list of integers in map.
How to do this ?