java - Linked List not reading file correctly -
so have linked list class has of constructor data necessary read file have , convert linked list. when reads in file data adding lines , spaces incorrectly. using system.out.println check , coming out incorrectly. don't think tostring method because have messed , nothing changes. need because cant figure out. thanks! file information(basically of data on separate lines): tobi tobi tobi@hotmail.com tobi mixed breed male 3-4 virginia walking lily lily lily@hotmail.com lily yorkshire terrier female 3-4 hawaii jumping peppy peppy peppy@hotmail.com peppy chihuahua male 7-8 alaska sleeping fluffy fluffy fluffy@hotmail.com fluffy mixedbreed female 3-4 virginia walking flower flower flower@hotmail.com flower chihuahua female 7-8 alaska sleeping linked list: import java.io.serializable; import java.util.*; public class linkedaccountlist implements serializable{ private string username; private string password; private string email; private string n