I'm new to java.
I have a class which uses File Input stream to parse a file and I'm calling this class in another class. And in the second class I use JFileChooser to select the file and and I'm calling the first class with filelocation as parameter.
But when I run it, it throws error that the filelocation "D:\t1.txt" is invalid and when i run the first class with the parameter "D:\\t1.txt", it runs perfectly.
Can anyone help me in this.