Split up the value printing and the comma-space printing into two separate statements, and don't print the comma-space for the last value:
System.out.print(hourlyTemp[i]);
if (i + 1 < NUM_VALS) {
System.out.print(", ");
}
Alternatively, print the first value outside the loop, then print the comma-space first inside the loop:
System.out.print(hourlyTemp[0]);
for (int i = 1; i < NUM_VALS; ++i) {
System.out.print(", " + hourlyTemp[i]);
}