Guest User

Untitled

a guest
Jan 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. for (int row = 0; row < jTable1.getRowCount(); row++) {
  2. int severidade = 0;
  3. int ocorrencia = 0;
  4. int deteccao = 0;
  5.  
  6. if (jTable1.getValueAt(row, 7) != null && jTable1.getValueAt(row, 7).toString() != "") {
  7. severidade = Integer.valueOf(jTable1.getValueAt(row, 7).toString());
  8. }
  9.  
  10. if (jTable1.getValueAt(row, 12) != null && jTable1.getValueAt(row, 12).toString() != "") {
  11. ocorrencia = Integer.valueOf(jTable1.getValueAt(row, 12).toString());
  12. }
  13.  
  14. if (jTable1.getValueAt(row, 14) != null && jTable1.getValueAt(row, 14).toString() != "") {
  15. deteccao = Integer.valueOf(jTable1.getValueAt(row, 14).toString());
  16. }
  17. jTable1.setValueAt(severidade * ocorrencia * deteccao, row, 15);
  18.  
  19. }
Add Comment
Please, Sign In to add comment