File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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 agree. Here's the link:
subject: Any Alternative for this CODE !!!!!!
It's not a secret anymore!