Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200380

String::lines

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • None
    • core-libs
    • None
    • b15
    • generic
    • generic

        String::lines instance method that returns a Stream<String> with elements composed of substrings from the original string delimited by any recognized new line character sequence.

        Note: String::lines() behaviour mimics BufferedReader::lines() as it treats new line character sequences as line terminators.

        Unlike String::split, String::lines provides better performance by supplying elements lazily and by fast search of new line character sequences.

              jlaskey Jim Laskey
              jlaskey Jim Laskey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: