fork download
  1. class Main {
  2. public static String mySplit(String s)[] {
  3. return s.split(",");
  4. }
  5.  
  6. public static void main(String... args) {
  7. String[] words = mySplit("a,b,c,d,e");
  8. System.out.println(java.util.Arrays.toString(words));
  9. }
  10. }
Success #stdin #stdout 0.02s 245632KB
stdin
Standard input is empty
stdout
[a, b, c, d, e]