Processing websites with java

Today in less than an hour I managed to make a program that reads the user input, which should be a valid URL. Then it can give you the number of pages that the link has, the html code in the console or make a new html file and save the html code there. I should also give all the links that the site has, but I wasn’t able to do this properly in the given time and it was only returning the whole html line in the source code. However I will continue the work later and make that function work. I used eclipse IDE and a lot of internet browsing in order to make the program work.

Here’s a link to my repository and the working java program:


First exam

For our first exam we needed to make a program on any language that we want, which was ment to read a csv file and write to an other one. It sounds easy, but less than 10 students have done it. Maybe it’s because the time was very limited or maybe we were just not prepared for this. However no one from the 6 people that did it used java. This may be because java is a good OO language and for such sort task you need to write a lot lines just to make the code works properly, while the whole code on ruby is less than 10 lines.

Here’s the link to the task using ruby:

Here’s the link to the task using java: