Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Eli Andrus wrote:The Key would be type persons(string) of course, and V(value), each value would be any array that contains all of the mail items stored for this person(referring back to person of key) I guess Im just wondering how I should form this, Im new to coding, and just need the type of structure I guess.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Rajagopal Mani wrote:MailItem is added to whom mail? if possible to post with credentials, below code can be considered. Not able to visualize the requirements & scenarios that you working towards.
Joanne
Eli Andrus wrote:also I'm sorry, it won't let me put the code into a box( I don't know how to do that yet)
Rajagopal Mani wrote:Line9 - If map not contains key, new key added with corresponding MailItem in the form of List.
Joanne
Joanne
Eli Andrus wrote:With your code joanne, it says that
is an incompatible type. it found a java List, but was expecting a ArrayList.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |