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