fork(4) 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. String s = "Input one Input Two Input Three";
  9. String[] result = s.split("Input");
  10. System.out.println(Arrays.toString(result));
  11. }
  12. }
Success #stdin #stdout 0.05s 213440KB
stdin
Standard input is empty
stdout
[,  one ,  Two ,  Three]