11.11 - Invert text file, ArrayList

Objetive

Create a program to display the contents of a text file "inverted" :

create a file containing the same lines as the original file but in reverse order (the first line will be the last one, the second will be the penultimate, and so on, until the last line of the original file, which should appear in the first position of the resulting file).

Also, each line must be displayed reversed (it must start with the last letter and end with the first letter).

You MUST use ArrayList.


Solution



Popular Posts