Latest News

 










Exercises

Previous slide Next slide Back to first slide View graphic version


Exercises


 
My other sites

Latest News

 










Exercises

  • Write an application that connects to the specified URL, gets its contents and then checks if the links from that page actually exist. Use a TextField to allow the user to input the URL, a “GO!” button and a TextArea to display the results of your search. To do this, you’ll have to parse the URL content, finding any “<A HREF=“, “<IMG SRC=“ and “<applet code=“. To find out the link status try to open a stream to that connection.

  • Improve on the previous exercise by providing a way to recursively test links on the specified URL. You may let the user define a maximum depth for your search.

Previous slide Next slide Back to first slide View graphic version