Advertisement
Guest User

01

a guest
Aug 2nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. private int[] getCalc(JTable... tabel){
  2. int[] newinte = new int[tabel[0].getRowCount()];
  3. for(int i=0; i<tabel[0].getRowCount();i++){
  4. newinte[i] = 0;
  5. for(int j=0;j<tabel[1].getRowCount();j++){
  6. newinte[i] += (Integer.parseInt(tabel[0].getValueAt(i, 0).toString())*
  7. Integer.parseInt(tabel[1].getValueAt(j, 0).toString()));
  8. newinte[i] += (Integer.parseInt(tabel[0].getValueAt(i, 1).toString())*
  9. Integer.parseInt(tabel[1].getValueAt(j, 1).toString()));
  10. }
  11. }
  12. return newinte;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement