Here you can find the source of convertIntegerToTwoCharString(int integer)
Parameter | Description |
---|---|
day | a parameter |
private static String convertIntegerToTwoCharString(int integer)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w . j av a 2s . c om * @param day * @return Integer as a 2 character string */ private static String convertIntegerToTwoCharString(int integer) { String string; if (integer < 10) { string = "0" + Integer.toString(integer); } else { string = Integer.toString(integer); } return string; } }