How do I use System.getProperty(“line.separator”).toString()?

前端 未结 7 1116
Happy的楠姐
Happy的楠姐 2020-12-29 05:41

I have a Tab-delimited String (representing a table) that is passed to my method. When I print it to the command line, it appears like a table with rows:

http://i.st

7条回答
  •  梦毁少年i
    2020-12-29 06:10

    On Windows, line.separator is a CR/LF combination (reference here).

    The Java String.split() method takes a regular expression. So I think there's some confusion here.

提交回复
热议问题