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

前端 未结 7 1113
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条回答
  • 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.

    0 讨论(0)
提交回复
热议问题