Java implements how to read HashMap

xiaoxiao2021-03-05  22

KEY = ProductId in this map

Public void getdata (havehmap map) {

Java.util.ITerator it = map.keyset (). iterator ();

While (it.hasnext ())

{

String s = (string) it.next ();

INT productID = INTEGER.PARSEINT (S);

Int num = integer.parseint (String) HM.Get (String.Valueof (ProductID));

}

}

转载请注明原文地址:https://www.9cbs.com/read-36432.html

New Post(0)