Very new to Java (only a few days into learning) I'm looking to make a random quotes program. I have the quotes on separate lines in the file quotes.txt. What I need to be able to do is grab a random line and print it.
I figure the steps are to first determine the number of lines in the file, then generate a random number between 0 and the number of lines. Then go to that line in the file and print it.
I just have no idea how to even get started really (again, forgive me, very new to Java). Any help is much appreciated.