Originally posted by Ulf Dittmer:
What's with all the UnsupportedOperationExceptions? Does the code run if you remove those? If so, what does it do, and where are you stuck making progress?
Originally posted by Ulf Dittmer:
No, you'd need to create two Formatter objects. But I assume that the files will contain different content anyway, so it's not like using just one Formatter makes things much easier, right?
Originally posted by Piet Verdriet:
Getting there!
No, here you need the divide operator, not the modulo operator.
Originally posted by Piet Verdriet:
You are almost there. I suggest you re-factor your code a bit by adding some additional methods. It will enhance the readability of your code.
Here's how you can do it:
I made little changes to the actual code, I only added a couple of extra methods. The logic is still the same as in your last post.
In addition, I added some pseudo code in your factorize(...) method. Try to finish it now.
Good luck!
[ July 18, 2008: Message edited by: Piet Verdriet ]