Here you can find the source of fastTimeWrite(LocalTime localTime)
public static char[] fastTimeWrite(LocalTime localTime)
//package com.java2s; //License from project: Open Source License import java.time.LocalTime; public class Main { public static char[] fastTimeWrite(LocalTime localTime) { char[] c = new char[5]; int h = localTime.getHour(); c[0] = (char) ('0' + (h / 10)); c[1] = (char) ('0' + (h % 10)); c[2] = (char) (':'); int m = localTime.getMinute(); c[3] = (char) ('0' + (m / 10)); c[4] = (char) ('0' + (m % 10)); return c; }/*www . ja v a 2 s .co m*/ }