Java Time Format formatTime(int time)

Here you can find the source of formatTime(int time)

Description

format Time

License

Open Source License

Declaration

public static String formatTime(int time) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String formatTime(int time) {
        if (time < 10) {
            return 0 + String.valueOf(time);
        } else {/*from   w  w  w .j  a v  a2 s  .c  om*/
            return String.valueOf(time);
        }
    }
}

Related

  1. formatTime(int seconds)
  2. formatTime(int seconds)
  3. formatTime(int secs)
  4. formatTime(int time)
  5. formatTime(int time)
  6. formatTime(int time)
  7. formatTime(int time)
  8. formatTime(int value)
  9. formatTime(Integer hour, Integer minute, Integer second, Integer ampm, Integer zoneOffset)