Java String Split by Line splitLines(final String helpMessage)

Here you can find the source of splitLines(final String helpMessage)

Description

split Lines

License

Apache License

Declaration

public static List<String> splitLines(final String helpMessage) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;
import java.util.List;

public class Main {
    private final static String lineSeparator = System.getProperty("line.separator");

    public static List<String> splitLines(final String helpMessage) {
        return Arrays.asList(helpMessage.split(lineSeparator));
    }//from   www  .jav  a 2  s  .  c  o m
}

Related

  1. splitIntoNonEmptyLines(String s)
  2. splitIntoNonEmptyLinesWithoutNetLogoComments( String s)
  3. splitLine(final String line, final char delimiter, final char qualifier, final int initialSize)
  4. splitLine(String input, int splitPosition)
  5. SplitLine(String p_line, String p_delimiter)
  6. splitLines(final String string)
  7. splitLines(String raw, int limit)
  8. splitLines(String S)
  9. splitLines(String s)