Java tutorial
//package com.java2s; public class Main { public static String normalizeHour(int hour) { if (hour == 0) { hour = 12; } return Integer.toString(hour); } }