What happens in this post?
Map<String, Object> m = new HashMap<String, Object>(); Is the Map interface initialized through polymorphism by a descendant class "HashMap"? What is it done for?
Map<String, Object> m; for (int i = 0; i < aProduct.length; i++) { m = new HashMap<String, Object>(); m.put(ATTRIBUTE_NAME_TEXT, aProduct[i]); m.put(ATTRIBUTE_NAME_PR, aPrice[i]); m.put(ATTRIBUTE_NAME_QT, aQuantity[i]); data.add(m); }