Firstly, my code works fine when I read a text file of 1's and 0' into a matrix (via FileInputStream and BufferedReader). However, when I saved an excel file as a text file, it no longer reads it in, giving me the following error message:
java.lang.NumberFormatException: For input string: "0 0 0 0 0 0 0 1 0 0 0"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.valueOf(Unknown Source)
Exception in thread "main"
I'm guessing its a formatting error, however I don't know how to get rid of the excel formatting. I've tried saving it in Word and then as a text, and also copying and pasting into a fresh Notepad document....to no avail. Anyone know how to get rid of the excel formatting?