Hello Every one.
I wrote some code to get a list of files in a directory and print their last modified time with the filename into an output file.
This is the code
When i ran this code on a Windows machine i got the output without any problems but when i ran it on an AIX 5.3 Box with Ibm Jdk 1.4.2 SR3 it gave the following error
Can you tell me what am i doing wrong here?
Thanks
Kaz
I wrote some code to get a list of files in a directory and print their last modified time with the filename into an output file.
This is the code
When i ran this code on a Windows machine i got the output without any problems but when i ran it on an AIX 5.3 Box with Ibm Jdk 1.4.2 SR3 it gave the following error
FileModify.java:27: incompatible types
found : long
required: java.lang.Long
Long lastmod = files[i].lastModified();
^
1 error
Can you tell me what am i doing wrong here?
Thanks
Kaz