Here you can find the source of getInt(Elements td, int i)
public static int getInt(Elements td, int i)
//package com.java2s; //License from project: LGPL import static com.google.common.base.Strings.isNullOrEmpty; import org.jsoup.select.Elements; public class Main { public static int getInt(Elements td, int i) { String s = getString(td, i); String n = isNullOrEmpty(s) ? "-1" : s; return Integer.parseInt(n); }/*from w w w.ja va 2s. c o m*/ public static String getString(Elements td, int i) { return td.get(i).text(); } }