How to write the java program to retrieve the last 7 days dates

Hi,I am having requirement that how to write the java program to retrieve the last 7 days dates. Please help me.Regards,Ahamad
[154 byte] By [ahamad15a] at [2007-10-3 8:56:59]
# 1
I can keep this up ALL day - http://jakarta.apache.org/commons/net/
sabre150a at 2007-7-15 4:07:20 > top of Java-index,Java Essentials,Java Programming...
# 2
Hi, How i can read the last 7 days dates in javaRegards,Ahamad
ahamad15a at 2007-7-15 4:07:20 > top of Java-index,Java Essentials,Java Programming...
# 3

When are you finally going to look at the link sabre150 keeps posting to you and download the FTPClient there. Once you download it, read its Guide, API, and Tutorial Documentation and you will have all the information you need. Is that now clear enough for you? Do you need someone to hold your hand and click your mouse?

masijade.a at 2007-7-15 4:07:20 > top of Java-index,Java Essentials,Java Programming...
# 4

Together with the easy bit

> How i can read the last 7 days dates in java

GregorianCalendar date = new GregorianCalendar(); // Now

for (int i = 0; i < 7; i++)

{

date.add(Calendar.DAY_OF_MONTH, -1);

System.out.println(date.getTime());

}

sabre150a at 2007-7-15 4:07:20 > top of Java-index,Java Essentials,Java Programming...
# 5
It needs any jar file.I did using jscape.My program is running fine.But it requires jar file.Which is licensed version.I have the doubt is apache provides jar file free versionRegards,Ahamad
ahamad15a at 2007-7-15 4:07:20 > top of Java-index,Java Essentials,Java Programming...
# 6
Then why, as I said earlier, don't you look at the link and find out. It does not use jscape, it uses it's own classes, and they are free. If you were to actually read the link you would know this.
masijade.a at 2007-7-15 4:07:20 > top of Java-index,Java Essentials,Java Programming...
# 7

> It needs any jar file.

Of course!

> I did using jscape.My program is running fine.But it

> requires jar file.Which is licensed version.

Maybe you should follow the link the the 'license' on the site I posted!

>

> I have the doubt is apache provides jar file free

> version

Maybe you should follow the link the the 'license' on the site I posted!

sabre150a at 2007-7-15 4:07:20 > top of Java-index,Java Essentials,Java Programming...