Object oriented programming with Java
One of my classes this spring is “TDT4100: Object oriented programming”. Through Java, they teach from basic to intermediate object oriented programming techniques. I’ve already completed a similar subject on my previous school, so this is basically just repetition, but it’s been a while since I’ve coded anything, making it worthwhile after all. As I’m fairly familiar with what’s being discussed and taught during the semester, I thought I’d share some of the exercises and explain a possible approach and solution for each.
Prerequsities
The class operates with the students using the Eclipse for RCP/Plug-in Developers (Ganymede, SR2) and a plugin for Eclipse called JExercise. JExercise is an in-house developed plugin from NTNU which runs through your code by using tests that checks the output of your source and gives you a score based on these results.
Get started
- Download and install the Eclipse version mentioned above, then download JExercise and a preconfigured worspace called ovinger.
- Install JExercise by extracting dropins.zip into the root of your Eclipse folder.

- Import the preconfigured workspace by right-clicking in the Package view to the left in your Eclipse IDE, select Import…, choose Archive File in the new dialog, browse to the folder where ovingsprosjekt.zip is stored and finish importing by clicking Finish.
If everything worked out well, you should have a browseable tree view to the left in your Eclipse IDE with ovinger as the topmost folder.
Good luck further, and I’ll have the first exercise ready soon.