0

Not sure why my class isn't pulling the data from a txt file and just says "cant parse"

https://code.sololearn.com/ckPaJryF7b54/#java -This is what is in the txt file I am trying to have it pull MusicCD, 948, Santas Christmas House, 1945, 260, false EBook, 666, The Devils Tail, 1721, 1000, true MovieDVD, 734, The Lonely GumDrop, 2021, true MovieDVD, 864, The Inner Workings Of Computers, 2001, false This is just one of the child classes. Wasn't sure if I should post the whole thing or not because its pretty big. But am not sure why this won't parse the data in a txt file. I'm new to reading/writing from files and learning the debugger atm.

6th Mar 2022, 4:21 AM
Jake Scanlan
Jake Scanlan - avatar
2 odpowiedzi
0
Media.parse(line) returns null (or Exception) but you didn't post this method here
7th Mar 2022, 10:00 AM
zemiak
0
I compared it with source code from your next question https://code.sololearn.com/cHesLPpVv6UC/?ref=app and in this your first post you used data format incompatible with your code but data in your next question works ok MusicCD,948,Santas Christmas House,1945,260,true EBook,666,The Devils Tail,1721,1000,true MovieDVD,734,The Lonely GumDrop,2021,260,true MovieDVD,864,The Inner Workings Of Computers,2001,300,false
8th Mar 2022, 1:10 AM
zemiak