Check if the last iteration is reached. If not print the comma, otherwise don't.
Replace :
for (i = 0; i < NUM_VALS; i++) {
System.out.print(hourlyTemp[i] + ", ");
}
With:
for (i = 0; i < NUM_VALS; i++) {
if (i == (NUM_VALS - 1)) System.out.print(hourlyTemp[i]);
else System.out.print(hourlyTemp[i] + ", ");
}