I know I am fairly new to Developing with java but I feel you could change the line with and this way you can exclude the or statement ( || ) and allow for any possible variation in the extension,...