Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int[] getCalc(JTable... tabel){
- int[] newinte = new int[tabel[0].getRowCount()];
- for(int i=0; i<tabel[0].getRowCount();i++){
- newinte[i] = 0;
- for(int j=0;j<tabel[1].getRowCount();j++){
- newinte[i] += (Integer.parseInt(tabel[0].getValueAt(i, 0).toString())*
- Integer.parseInt(tabel[1].getValueAt(j, 0).toString()));
- newinte[i] += (Integer.parseInt(tabel[0].getValueAt(i, 1).toString())*
- Integer.parseInt(tabel[1].getValueAt(j, 1).toString()));
- }
- }
- return newinte;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement