Page 907 - 3-2
P. 907
float temp = Float.parseFloat(rs.getString("temp"));
//System.out.println(""+ det + addr + room + fire + spark
+gas + temp);
textArea.setText(det +"\n" +addr +"\n"+room +"\n"
+fire +"\n"+spark +"\n"+gas +"\n"+temp);
}
stmt.close();
conn.close();
}catch(SQLException se1){
se1.printStackTrace();
}catch(Exception ex){
ex.printStackTrace();
}finally{
try{
if(stmt!=null)
stmt.close();
}
catch(SQLException se2){
}
try{
if(conn!=null)
conn.close();
}
catch(SQLException se){
se.printStackTrace();
}
}
}
}
- 907 -