50,549
社区成员
发帖
与我相关
我的任务
分享
public class demo {
public static void main(String[] args) throws IOException {
Document doc = Jsoup.connect("http://kaoshi.jxedt.com/10045/").get();
Elements im = doc.select("h3");
print("\nIm: (%d)", im.size());
for (Element link : im) {
print(" * %s <%s>", link.tagName(),link.html());
}
}
private static void print(String msg, Object... args) {
System.out.println(String.format(msg, args));
}
}