I have the following text:
My name is Omer
//new line
I want to start my own personal project and achieve a lot with it
//new line
//new line
I also have problems that I encounter along the way but I know I will overcome them
//new line
Good
Bye
//new line
Bye
So that was the example above, I also want to use a BufferedReader. Let's say my BufferedReader is called br. Using br.readLine(), I can read lines from the console(I will input every single letter, I also use an InputStreamerReader)
If I do for example:
String line;
do {
line = br.readLine();
} while(line.lenght != 0)
It will stop after I enter a new line.
How can I read that text correctly? (I think that this is the first question that I ask here, sorry for any mistakes that I have maybe made)