|
-
Nov 24th, 2000, 04:36 PM
#1
Thread Starter
Dazed Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|