Java tutorial
//package com.java2s; public class Main { public static String printCustomerID(long id) { String idString = String.format("%05d", id); String newStringID = ""; newStringID += idString.substring(0, 2) + "-"; newStringID += idString.substring(2, 5); return newStringID; } }