Reading from a text file, then writing back to Text Area in Reverse
I am working on a school assignment (GUI based) that will read an existing file consisting of single words on six different lines, then write these words in reverse order to a JTextArea. I am having trouble locating any guides to help me through the creation of an array and then reading from the array in reverse order. I have looked at creating a buffer and reading from it at specific points to get the characters but it seems there should be a better way with an array. Does anyone have any suggestions for sites to look at? The API pages are cryptic and give no examples. I have already created my GUI and have a fileinputstream working.