Dillinger4
Nov 24th, 2000, 03:36 PM
Hi everyone,
Im doing a IO project for school and i having trouble
importing a class.
This is a method within a class named filegrabber
public static void typefile(String filename) throws IOException {
FileInputStream fin = new FileInputStream(filename);
StreamCopier.copy(fin,System.out);
fin.close();
}
}
now in order for me to use the copy method which is part
of the StreamCopier class i have to import the StreamCopier
class right? If i specify import parserproject.StreamCopier;
i get cannot resolve symbol errors and if i put in
import parserproject.*; i end up getting 1 error
cannot resolve symbol StreamCopier.copy(fin,System.out);
^
bolth classes are in the same directory C:\parserproject
so i dont understand im not able to import.
Im doing a IO project for school and i having trouble
importing a class.
This is a method within a class named filegrabber
public static void typefile(String filename) throws IOException {
FileInputStream fin = new FileInputStream(filename);
StreamCopier.copy(fin,System.out);
fin.close();
}
}
now in order for me to use the copy method which is part
of the StreamCopier class i have to import the StreamCopier
class right? If i specify import parserproject.StreamCopier;
i get cannot resolve symbol errors and if i put in
import parserproject.*; i end up getting 1 error
cannot resolve symbol StreamCopier.copy(fin,System.out);
^
bolth classes are in the same directory C:\parserproject
so i dont understand im not able to import.