This should satisfy you: String lines[] = string.split("\\r?\\n");. There are simply just two newlines (UNIX and Windows) that you require ...
確定! 回上一頁