The file must be inputted into the program. Stringbuilder is supposed to format each line. I have no idea how to do this. I don't know how to make the connection between scanner, my inputted text...
Type: Posts; User: ExtremophileElite
The file must be inputted into the program. Stringbuilder is supposed to format each line. I have no idea how to do this. I don't know how to make the connection between scanner, my inputted text...
I've tried using StringBuilder but I don't know how to make it read the lines of my file. Can you please explain this a little bit clearer? I hardly have any experience so just telling me to...
Did you read what my instructions are and do you get what they're asking? Could you possibly give me some sample code to just demonstrate formatting the lines?
Yes, I've figured out the Printwriter class. Is there a way to take in a bunch of lines and specifying their lengths? My earlier question was how do I use StringBuilder to do this?
I was given a text file that I must do what is in the instructions I posted. I don't know how to read in each line(there's a lot of them). I would like to read in the lines and set the lengths.
I don't know how to use it, that's my problem. I have absolutely no idea how to format a file with a block of text. Can you give me help with that?
I'm unsure on how to use Stringbuilder to do this. I was hoping someone would be able to show me how to continue with this program.
I'm trying to follow directions to format a text file but I'm very new at Java and I'm not exactly sure how to do this formatting. Here are the instructions:
"read in a text file and display...