anonymous
2010-11-11 12:04:02 UTC
This is what i have... but when i test it in my tester class, i get this result --> [I@cf8583
which is a whole bunch of nothing. Not sure what's going on... any help or suggestions would be awesome. THANK YOU.
public static int[] truncate(double[] regularValues)
{
int[] newValues = new int[regularValues.length];
int count = 0;
while (count < regularValues.length)
{
double holder = Math.floor(regularValues[count]);
newValues[count] = (int) holder;
count = count + 1;
}
return newValues;
}