I need to go through a large list of string url\'s and extract the domain name from them.
For example:
http://www.stackoverflow.com/questions
You could try to use regular expressions.
http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
Here is a question about extracting domain name with regular expressions in Java:
Regular expression to retrieve domain.tld