array =列的某種列表,包含3列和無限數量的行,其中包含數據。 Volume = array[0][2]
counter = 0
for i in array:
if Volume == array[i][2]: #<------ why is this line a problem?
counter += 1
在另一問題,我的代碼有這樣的equals方法: public class Length {
private final double value;
private final Unit unit;
public Length(double value, Unit unit) {
this.value = value;
this.unit =