dimanche 28 février 2016

Iterate HashMap

I have three values I get from a json querry, and I thought that I would need to store then in a HashMap> to later, iterate over it and store in a sqlite database, but I don't know how to iterate it.

I have 3 values: a name, product and quantity, and I need to store it with:

db.execSQL("Insert into table(name, product , quantity) values ('" + name + "', '" + product + "' + " + quantity + ")");

Any idea? Thanks (Sorry for my English)

Aucun commentaire:

Enregistrer un commentaire