Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    static String formatDateTime(String mmdd, String hhmmss) {
        return new StringBuffer(hhmmss).insert(4, ":").insert(2, ":").insert(0, ' ').insert(0, mmdd).insert(2, "/")
                .toString();
    }
}