So I\'m working on reading in a \".txt\" file to use it to implement Dijkstra\'s algorithm, but every time I try to compile it gives me a \"FileReader is already defined in this
Your class is named the same as FileReader in the java.io package (you have commented out above). Rename your class to something else like TextFileReader or InputFileReader or use the fully qualified class name for java.io.FileReader.
Just rename your class "FileReader" to different toxicity, in order not to be confused.