15. February 2016
I was curious to see if I could write a music-shuffling program in Java, so that I could listen to tracks stored on an
external hard drive. I had digitised an old vinyl collection, most of which can’t be found on YouTube!
The program is simple: it finds all the tracks from a given directory and its subdirectories, and plays them in a random
order. If your music is organised into categories or artists, then you can target a particular genre by passing in the
appropriate directory as the first argument.