Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String formathhmmss(String hhmmss) {
        if (null != hhmmss && hhmmss.length() == 6) {
            StringBuffer sb = new StringBuffer(hhmmss);
            sb.insert(2, ":");
            sb.insert(5, ":");
            return sb.toString();
        }

        return "";
    }
}