This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Well, I don't think there's any well-defined standard for what that would mean. The length of a month varies, after all. How many months are between Jan 31 and March 1? How many between March 1 and March 31? There are several ways you could answer those questions, and it's not clear that one answer is "right".
If you want a simple appoximation, it's easy:
Otherwise you probably need to define precisely what a month is. Good luck.
If i remember, i used two calendars, one in the original date and one in the reference date. Then added while the original calendar was less (Date.before(Date)) than the reference date, have an integer variable holding how many cicles you have used. If not, add a month. Using the Calendar.add(). Hopes it helps.
She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.
Why are you using Vector as a List implementation? That is regarded as legacy code. All these substrings look very awkward.
And please fins the Code button; I have edited your post so you can see how much better it looks.
Joined: Apr 29, 2010
Thanks ritchie from now i will post like that. Sorry if anything wrong in my post.