Here you can find the source of readLines(String text)
private static String[] readLines(String text) throws IOException
//package com.java2s; //License from project: Apache License import java.io.IOException; public class Main { private static String[] readLines(String text) throws IOException { return text.split("\\r?\\n"); }/* w w w . ja v a2 s . c om*/ }