Very new to Java (only a few days in the learning process). I am looking for a random program of quotes. I have quotes on separate lines in the quotes.txt file. What I need is to grab a random string and print it.
I believe that the steps first determine the number of lines in the file, and then generate a random number between 0 and the number of lines. Then go to this line in the file and print it.
I just have no idea how to even get started (again, forgive me, very new to Java). Any help is greatly appreciated.
java
quibblify
source share