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. {
  8. String s = "expiem;0:2pfemfrance;1:runiora;1:stallker420;1:phoenixblaze0916;1:myothorax;1:";
  9. String[] result = s.split(";[01]:");
  10. for(String name : result) {
  11. System.out.println(name);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
expiem
2pfemfrance
runiora
stallker420
phoenixblaze0916
myothorax