fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. System.out.println("0123456789ABCDEF".replaceAll("(?<=..)(..)", ":$1"));
  9. }
  10. }
Success #stdin #stdout 0.07s 381248KB
stdin
Standard input is empty
stdout
01:23:45:67:89:AB:CD:EF