The Java standard library has classes to deal with HTTP requests, and some HTML parsing functions I think. You should just be able to get the page you want and use the parser to extract the needed information from it.
The difficult bit is figuring out how to use the parser to get what you want, and that's the only bit that would be specific to Wikipedia articles.