SyntaxFix
Write A Post
Hire A Developer
Questions
[edited]
using your comment about productCode (and assuming product code is a String) as reference...
for(Product p : productList){ s.put(p.getProductCode() , p); }