Share with you guys of some coding performance optimization tips:
1) Always use isEmpty() rather than size()>0 to check whether a collection contains any object. For further explanation, please read http://hanuska.blogspot.com/search/label/java
2) Always use iterator to iterate your list rather than using for loop and get(int). For further explanation please read http://forum.java.sun.com/thread.jspa?threadID=530365&messageID=2555464
No comments:
Post a Comment