Ecco il mio problema sta qui:
codice:
while (result.next()) {
String tempo = result.getString(2);
double temp_a = result.getDouble(3);
DateFormat dateformat=new SimpleDateFormat("yyyy/MM/dd HH.mm.ss");
java.util.Date data=dateformat.parse(tempo);
series.addOrUpdate(new Second(data),temp_a);
if(title3.equals(conf)){ }
else{
series1.addOrUpdate(new Second(data),alta);
if(temp_a>alta){
SE ALTA supera TEMP_A per un tot di tempo...
}
for (int i=0; i < rileva-1; i++){
result.next();
}
}
}
Il mio problema è qui quando imposto l'if di (temp_a>alta) dovrei riuscire a dire se questa condizione è verificata per un determinato periodo...e generare poi un pop-up...mi potete aiutare???