Hi,
i am fairly new to java and have been stuck on this for ages, basically i need to create a new object which gets a list of data from a text file, so i have this
And ive tried many different ways of writing it but i dont understand why it wont create the object, it just says the error message.
...\Tester.java :17: cannot resolve symbol
symbol : constructor Dictionary (java.io.File)
location: class Dictionary
Dictionary aDictionary = new Dictionary(dict ionaryFile);
Thanks for any help
i am fairly new to java and have been stuck on this for ages, basically i need to create a new object which gets a list of data from a text file, so i have this
Code:
import java.io.*;
import java.util.*;
public class Tester {
public static void main( String args[] ) {
File checkerFile = new File("dictionary.txt");
Dictionary aDictionary = new Dictionary(checkerFile);
}
}
...\Tester.java :17: cannot resolve symbol
symbol : constructor Dictionary (java.io.File)
location: class Dictionary
Dictionary aDictionary = new Dictionary(dict ionaryFile);
Thanks for any help
Comment