First, welcome to the Ranch!!!
Vasiliy Shcherbinin wrote:if the answer could contain a finished version of this code that would be heavens... but maybe thats really me asking too much already (i just learn better that way)
We generally don't give out full-blown solutions here. Folks here love to help, but that means 'help' and not 'do it for me'.
Now, I notice it's been a few days and nobody has responded. You may want to read some of our FAQ on
HowToAskQuestionsOnJavaRanch. You have done many, but your post is still a little broad. We tend to respond better with specific, focused questions, rather than general "This doesn't work, please help" kinds of question.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors