This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm using URL(and its openStream method) from Java API to retrieve data from a website, I use StringBuilder to append each HTML/source line into a String. Then use indexOf() and substring() methods to help with the actual (specific) data extraction. I wonder if there is some more efficient way to extract data from websites?
I suppose the most relevant piece of code would be:
If I have got the purpose of threads right, it is for the program to be able to execute multiple instructions at the same time rather than one at a time?
I have only just started learning threads, but I want to make use of it ASAP, to increase performance by extracting data from different places on a website at the same time. Is this a bad idea? I dont really want to put strain on servers. Is there a good way to do this?
My apologies if this belongs to beginner forum, I'm not quite sure what programming level "threads" are on.