fork(1) download
  1. class test
  2. {
  3.  
  4. public static void main(String[] args)
  5. {
  6. String input = "1 80,982 163,8164 170,2620 ";
  7. String[] values = input.split("\\s*(,|\\s)\\s*");
  8. for(String val: values)
  9. {
  10. System.out.println(val);
  11.  
  12. }
  13.  
  14.  
  15. }
  16.  
  17.  
  18. }
Success #stdin #stdout 0.06s 380160KB
stdin
Standard input is empty
stdout
1
80
982
163
8164
170
2620