So I want to get a List like that:
Entry1
Entry2
Entry3
Entry4
All those entries are in a text file on my webserver.
So my plan is to read those out, and add every of them to the a ArrayList.
Edit: The thing is I don't know how to read more lines.
I have this code:
public static String getDataFromServer() throws IOException{
    String sourceLine = null;
    URL address = new URL("webserver");
    InputStreamReader pageInput = new InputStreamReader(address.openStream());
    BufferedReader source = new BufferedReader(pageInput);
    try {
        sourceLine = source.readLine();
    } catch (IOException e) {
        e.printStackTrace();
    }
    return sourceLine;
}
With this I can read out 1 Line. As you can see in my Example I would need to read out every line there is, since I want to add more lines later on without editing the Code everytime.
I hope its more clear now.
Thanks for any help.
 
    