Java tutorial
//package com.java2s; public class Main { private static String[] get12HourArray() { final int SIZE = 12; String[] hour = new String[SIZE]; int index; for (index = 0; index < SIZE; index++) { String indexValue = String.valueOf(index); hour[index] = indexValue; } return hour; } }