Print msg for no arrival (avg)

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2020-11-26 03:29:08 +03:00
parent 4ab5b750b8
commit 946e4004ae

View File

@ -532,6 +532,7 @@ public class MakkahCity {
sum = sum /counter;
int hours = sum / 60;
int minutes = sum % 60;
if (hours == 0 && minutes == 0) return "(No arrivals) in last Hour";
return String.format("%2d:%02d", hours,minutes);
}