Days Between Dates Java (homework)

前端 未结 3 2055
醉酒成梦
醉酒成梦 2021-01-22 04:44

This is a couple days off when I run the program. Any advice on what I am doing wrong?

I know there is a simpler way to do it, but for this I\'m trying to show all the a

3条回答
  •  旧时难觅i
    2021-01-22 05:27

    Unless this homework or just some self hurting thing you have going can I recommend using the joda time library for all your datetime calculations:

    Time to use joda answer: ~22 minutes

提交回复
热议问题