wood burning stoves 2.0
The moose likes Beginning Java and the fly likes Any Alternative for this CODE !!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Any Alternative for this CODE !!!!!!" Watch "Any Alternative for this CODE !!!!!!" New topic

Any Alternative for this CODE !!!!!!

Swapna Agarwal
Ranch Hand

Joined: Jan 30, 2004
Posts: 37
I do know there are some mistakes in my CODE, but treating this as psudo code, could any one give me the correct code?
My input:
endDate: 02/29/2004
Expected output Should return only SUNDAY's between these 2 dates)

Here is my (psudo) CODE

These are the compilation errors:
[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ March 26, 2004: Message edited by: Dirk Schreckmann ]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Try this (dt1 is earlier date)
Swapna Agarwal
Ranch Hand

Joined: Jan 30, 2004
Posts: 37
Wow..........Excellent........what a simple logic.That is my exact requirement.
Thank you so much,Thanks to JavaRanch Forums.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Any Alternative for this CODE !!!!!!
It's not a secret anymore!