Hello! Just a quick question about the formatting of text files when using
Java. I created a text file called Discount Fly that keeps track of things like a person's name, address, etc. Here is roughly what it looked like in the .txt file:
Name Address Postal Code
Jane Doe Anywhere St, 123 1A2 B3C
However, when I run this code:
It prints out into JOptionPane as:
NameAddressPostalCode
JaneDoe Anywhere St, 123 1A2 B3C
Is there anyway to maintain the formatting in JOptionPane? Also, I am new to writing programs that read from text files, so if somethings up with my code (i.e. java conventions) please tell me.
Thank you very much for any help/tips! Useful links are always appreciated ~