?? test.java
字號:
package com.blogool.crawl;
import java.util.*;
import org.flytinge.*;
public class Test {
/*
public static void main(String[] args) {
List<HttpListGetItem> list = new ArrayList<HttpListGetItem>();
HttpListGetItem hlgi = new HttpListGetItem();
hlgi.setEnds("</html>");
SuperContentHandle sch = new SuperContentHandle() {
public void handle(HttpListGetItem item, String content) {
System.out.println(content);
}
};
hlgi.setHandle(sch);
hlgi.setUrl("http://www.lightinthebox.com");
list.add(hlgi);
String ps = "152.157.252.5:2207";
String[] pss = ps.split("\\:");
HttpListGet hlg = new HttpListGet(list, pss[0], Integer.parseInt(pss[1]));
hlg.start();
}*/
public static void main(String[] args) {
long start = System.currentTimeMillis();
int count = 0;
Object obj = new Object();
String str = null;
for (int i = 0; i < 10000000; i ++) {
str = obj.toString();
}
System.out.println("time:" + (System.currentTimeMillis() - start) + "ms");
System.out.println("result:" + str);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -