I am new to programming and I would like some tips. I have a program that reads from a text file using the the following method:
BufferedReader reader = new BufferedReader(new FileReader(file));
.....
This works but the problem is that some lines are long and I can't see all the text in the GUI. How should I tell Java to go to next line if length is equal to a certain amount?
Example text:
A week after Mozart died, his ghost was discovered trying to erase his music. When asked why, it said "I'm decomposing.
Instead of two lines, I want to parse it into four lines. Any help would be appreciated.