Hi I have created two Java file under a directory called Utility with as follow:
- FileName.java
public class FileName { private String name; public FileName (String name) { //some code } String getName() { return name; } }
- FileNameReader.java
public class FileNameReader { public static void main(String[] args) throws IOException { FileName obj = new FileName("testfile.txt"); } }
Now, when i am comipling throw command prompt, compiler giving me error saying cannot file symbol at FileName obj = new FileName(); this line