fork(26) download
  1. class Ideone {
  2. public static void main (String[] args) {
  3. String str = "Hello";
  4. System.out.println(str.replaceAll(".(?=.)", "$0 "));
  5. }
  6. }
Success #stdin #stdout 0.1s 321408KB
stdin
Standard input is empty
stdout
H e l l o