Java Reference
In-Depth Information
public double getNotegewichtet(int row) {
int gewichtung=((Integer)getValueAt(row, 1)).intValue();
double note = ((Double)getValueAt(row, 2)).doubleValue();
return gewichtung*note;
}
public int getGewichtung(int row) {
int gewichtung=((Integer)getValueAt(row, 1)).intValue();
return gewichtung;
}
public double getNotengewichtet(int[] rows) {
double gesamt=0;
for(inti=0;i<rows.length;i++){
gesamt += getNotegewichtet(rows[i]);
}
return gesamt;
}
public int getGewichtung(int[] rows) {
int gewichtung = 0;
for(inti=0;i<rows.length;i++){
gewichtung += getGewichtung(rows[i]);
}
return gewichtung;
}
public double getNotengewichtet() {
int max = getRowCount();
double gesamt = 0;
for(inti=0;i<max;i++)
{
gesamt += getNotegewichtet(i);
}
return gesamt;
}
public double getGewichtung() {
int max = getRowCount();
double gewichtung = 0;
Search WWH ::




Custom Search