Here is the output of my Java Version program: