It seemed to me that the behavior of java String.split() very strange.
Actually I want to split the string "aa,bb,cc,dd,,,ee" into an array on .split(",") , which gives me an array of String ["aa","bb","cc","dd","","","ee"] length 7.
But when I try to split the array "aa,bb,cc,dd,,,," String "aa,bb,cc,dd,,,," into an array, it gives me an array of length 4 means that only ["aa","bb","cc","dd"] rejects all following blank lines.
I need a procedure that splits String as "aa,bb,cc,dd,,,," into an array ["aa","bb","cc","dd","","",""] .
Is this possible with java.lang.String api? Thanks in advance.