Here you can find the source of getMinuten(boolean mitBlank)
static public Vector getMinuten(boolean mitBlank)
//package com.java2s; /*//ww w . j av a2s .co m * photo-manager is a program to manage and organize your photos; Copyright (C) 2010 Dietrich Hentschel * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation; * either version 2 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program; * if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ import java.util.*; public class Main { static public Vector getMinuten(boolean mitBlank) { return getArrayString(0, 59, 2, mitBlank); } static public Vector<String> getArrayString(int von, int anzahl, int lg, boolean mitBlank) { Vector<String> v = new Vector<String>(); if (mitBlank && lg == 1) v.add(" "); if (mitBlank && lg == 2) v.add(" "); if (mitBlank && lg == 3) v.add(" "); if (mitBlank && lg == 4) v.add(" "); for (int i = von; i < anzahl + 1; i++) { String s = stringToString("00000" + Integer.toString(i), lg); v.add(s); } return v; } static public String stringToString(String in, int lg) { String ret = " "; ret += in; return ret.substring(ret.length() - lg); } }