fork 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. String orig = "19,28,37,46";
  8. System.out.println(orig.replaceAll("(\\d)(\\d)", "$1.$2"));
  9. }
  10. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
1.9,2.8,3.7,4.6