7879808182838485868788
try{ ps = conn.prepareStatement("select * from ramo"); rs = ps.executeQuery(); List<RamoRelatorio> listaRelatorio = new ArrayList<RamoRelatorio>(); while(rs.next()) { listaRelatorio.add(new RamoRelatorio(rs.getInt(1), rs.getString(2))); } return listaRelatorio; } catch (Exception e) { e.printStackTrace(); }