public static String getFormattedTime(int time) { // throws Exception{
		if (time < 10 && time >= 0) {
			return String.format("0%d00", time);
		} else if (time <= 24 && time >= 0) {
			return String.format("%d00", time);
		} else if (time >= 100 && time <= 2400) {
			if (time % 100 < 60 && time % 100 >= 0) {
				if (time >= 1000) {
					return String.format("%d", time);
				} else {
					return String.format("0%d", time);
				}
			}
		}
		return ""; // Added to return false result
		// throw new Exception("Invalid time.");
	}