Iterator<Long> scores = scoreRows.next().iterator();
while (scores.hasNext())
{
- elements[row][col++] = scores.next();
+ Object d = scores.next();
+ if (d instanceof Double)
+ elements[row][col++] = ((Double) d).longValue();
+ else
+ elements[row][col++] = (float) d;
}
row++;
col = 0;