This content has been marked as final. Show 4 replies
If the classes are in the same package then you do not need to import them. If they are in a different package then you must import them if you wish to use the class. Alternatively you can use fully qualified names instead of import statements.
But I don't really understand your question.
java.io.File f = new java.io.File();
3n1gma wrote:Rather have them in .class files. They can't really be in .txt files. They are separate files which you can import.
i thnk u did answer it...i have 4 classes i created myself in .txt files and wanted to import them so that my program can read and use them from the file rather than me placing them directly in my program