fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.util.regex.*;
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. String test = "24.12.17 18:17 TestString";
  10. int idx = test.indexOf(" ", test.indexOf(" ") + 1);
  11. System.out.println(test.substring(0, idx));
  12. System.out.println(test.substring(idx).trim());
  13. }
  14. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
24.12.17 18:17
TestString