means display helloagain.html when the URL simply shows “/”. This means the helloagain.html is the index page or home page. The “/” URL expands to
http://localhost:8080/
which is the root of the application.
The line
router.get("*",serveStaticFiles("public/"));
means for all other files not indicated by any route, treat them as static files and look for them inside the public/ folder.
We indicated in the helloagain.html page that the stylesheet and the javascript files are in /public/css/ and /public/js/ but without mentioning the public/ folder:
After refreshing the browser, something similar is what you will see:
The images you see will most likely be different as they are randomly selected every time you refresh the page, so try to refresh the page a few times to see a different set of pictures.