Java tutorial
//package com.java2s; public class Main { public static String[] getMinute() { final int SIZE = 60; String[] minute = new String[SIZE]; int index; for (index = 0; index < SIZE; index++) { String indexValue = String.valueOf(index); if (indexValue.length() == 1) { indexValue = String.format("0%s", indexValue); } minute[index] = indexValue; } return minute; } }