Sorry for all the questions but why did the decimal format you used change the 1000 value from "1000.0" (with no decimal formatting) to "1000" (with decimal formatting), which you can only see if you load the csv file in notepad, not excel?
I'm just learning this stuff, by the way. So I'm not suggesting you've done it wrong. My guess so far is that PrintWriter bests FileWriter . write because it is similar to System . out, and has more power of formatting.
Helped me a lot, thanks from Brazil.
mikekiske 2 months ago
Sorry for all the questions but why did the decimal format you used change the 1000 value from "1000.0" (with no decimal formatting) to "1000" (with decimal formatting), which you can only see if you load the csv file in notepad, not excel?
matthewdoucette 7 months ago
also, what about closing fwriter?
matthewdoucette 7 months ago
I'm just learning this stuff, by the way. So I'm not suggesting you've done it wrong. My guess so far is that PrintWriter bests FileWriter . write because it is similar to System . out, and has more power of formatting.
matthewdoucette 7 months ago
Why not, after using FileWriter, use fwriter dot write( )? Why use PrintWriter at all?
matthewdoucette 7 months ago
Why FileWriter/PrintWriter instead of FileOutputStream/ObjectOutputStream? Thanks so much for this vid!
matthewdoucette 7 months ago
THANKS ALOT! that helped me alot , keep going
top5tvs 7 months ago
Great video
ben51992 9 months ago