Hi All,
I am using the following line of code:
String[] children = directory.list();
It seems fine when I used it other places but I am getting an error on compile:
C:\j2sdk1.4.2_11\bin>javac timeoutput.java
timeoutput.java:4: cannot resolve symbol
symbol : class io
location: package java
import java.io;
^
It seems to want me to import java.io . I have already done this however. The full code follows:
import java.io.*;
import java.lang.*;
import java.lang.String;
public class timeoutput {
public static void main (String[] args) {
String directory = "C:\\j2sdk1.4.2_11\\working";
long modifiedTime;
long t_difference;
long t_60_days_ago = System.currentTimeMillis()-5184000000L;
String[] children = directory.list();
//the rest of the code has been omited
}
}
Thanks for any help,
Bradley
I am using the following line of code:
String[] children = directory.list();
It seems fine when I used it other places but I am getting an error on compile:
C:\j2sdk1.4.2_11\bin>javac timeoutput.java
timeoutput.java:4: cannot resolve symbol
symbol : class io
location: package java
import java.io;
^
It seems to want me to import java.io . I have already done this however. The full code follows:
import java.io.*;
import java.lang.*;
import java.lang.String;
public class timeoutput {
public static void main (String[] args) {
String directory = "C:\\j2sdk1.4.2_11\\working";
long modifiedTime;
long t_difference;
long t_60_days_ago = System.currentTimeMillis()-5184000000L;
String[] children = directory.list();
//the rest of the code has been omited
}
}
Thanks for any help,
Bradley