I need to save a bunch of text to a txt file from a LinkedList.
Here's the code.
I'm just beginning with Java, and thats as far as I've been able to go.
The names inside names.txt are these, create a text file with these in it :
Basically, the program should read from Names.txt, save the names to a LinkedList, and then using the LinkedList, print them all out to the cmd screen, and THEN it should also save the names into a NEW txtfile.
You should also indent your code more carefully. It will then look like thisUse spaces not tabs for indentation. Get a decent text editor eg NotePad++ Notepad2 or jEdit, which will automatically convert tabs to (4) spaces and help with indents, bracket matching, etc. That makes finding errors much easier.
I would prefer to get rid of the break like this
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.