### Question:
Elements implements List<Element>, Cloneable { public String val() { if (size() > 0) return first().val(); else return ""; } Elements();  Elements(Collection<Element> elements);  Elements(List<Element> elements);  Elements(Element... elements); @Override Elements clone(); String attr(String attributeKey); boolean hasAttr(String attributeKey); Elements attr(String attributeKey, String attributeValue); Elements removeAttr(String attributeKey); Elements addClass(String className); Elements removeClass(String className); Elements toggleClass(String className); boolean hasClass(String className); String val(); Elements val(String value); String text(); boolean hasText(); String html(); String outerHtml(); String toString(); Elements tagName(String tagName); Elements html(String html); Elements prepend(String html); Elements append(String html); Elements before(String html); Elements after(String html); Elements wrap(String html); Elements unwrap(); Elements empty(); Elements remove(); Elements select(String query); Elements not(String query); Elements eq(int index); boolean is(String query); Elements parents(); Element first(); Element last(); int size(); boolean isEmpty(); boolean contains(Object o); Iterator<Element> iterator(); Object[] toArray(); T[] toArray(T[] a); boolean add(Element element); boolean remove(Object o); boolean containsAll(Collection<?> c); boolean addAll(Collection<? extends Element> c); boolean addAll(int index, Collection<? extends Element> c); boolean removeAll(Collection<?> c); boolean retainAll(Collection<?> c); void clear(); boolean equals(Object o); int hashCode(); Element get(int index); Element set(int index, Element element); void add(int index, Element element); Element remove(int index); int indexOf(Object o); int lastIndexOf(Object o); ListIterator<Element> listIterator(); ListIterator<Element> listIterator(int index); List<Element> subList(int fromIndex, int toIndex);  }### Answer:
@Test public void val() { Document doc = Jsoup.parse("<input value='one' /><textarea>two</textarea>"); Elements els = doc.select("input, textarea"); assertEquals(2, els.size()); assertEquals("one", els.val()); assertEquals("two", els.last().val()); els.val("three"); assertEquals("three", els.first().val()); assertEquals("three", els.last().val()); assertEquals("<textarea>three</textarea>", els.last().outerHtml()); }