Here you can find the source of elementsToList(Elements elements)
public static List<String> elementsToList(Elements elements)
//package com.java2s; //License from project: Open Source License import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.util.ArrayList; import java.util.List; public class Main { public static List<String> elementsToList(Elements elements) { List<String> elementsList = new ArrayList<String>(); for (Element element : elements) { elementsList.add(element.toString()); }/* ww w. j ava2 s. co m*/ return elementsList; } }