public static String [ ] split ( String str , String separator ) { return Pattern . compile ( separator ) . split ( str , - 1 ) ; }
Split the String passed in parameter the trailing empty string are kept .