Gabor Ewhaas wrote:I have struggled for making the code work too. After a whlie my solution is below...
1. Welcome to Javaranch.
2. In future, please UseCodeTags (←click).
3. We generally don't like people to post ready-made solutions on these forums, especially in the 'Beginning Java' area. I'm sure your intentions were great, but it's far better to simply help people and let them work things out for themselves.
For the moment, I've removed your post in such a way that it can be restored if my colleagues think that I've overstepped my authority.
Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here
Gabor Ewhaas wrote:thank you for your honorable advices. I'm new to java and to this forums too. Next time i will do so as you said. I agree with you -- and with the common law which is expected here i mean.
No probs; and thanks for not taking my post personally. It's simply the JavaRanch etiquette.
And please, do feel free to offer advice. That's what these forums are here for.