I have made a database and arraylist android passing variables from inside database class , now I am trying to get one or some values from the array list using List<EntryEffectiveRate> allEffectiveRate = db.getAllEffectiveRates();
as for get the all the data lists from the database, however i only able to get all of them using loop :
// getting all ER
Log.d("Get ER", "GEtting All ER");
List<EntryEffectiveRate> allEffectiveRate = db.getAllEffectiveRates();
for (EntryEffectiveRate ER : allEffectiveRate) {
Log.d("ER_ids", String.valueOf(ER.getERId()));
Log.d("ER_rates", ER.getERKondisi());
Log.d("ER_tenors", String.valueOf(ER.getERTenor()));
Log.d("ER_rates", String.valueOf(ER.getERrate()));
}
how to get just one or few values from the array list?
thanks in advance.
The solution is on the above link, check on the answer.