Once the file has been saved, you can call it from the HTML code via the src attribute of the opening script tag, as shown below for write.
Another advantage to this method is that the same script can be included in multiple pages, and editing the script file will update the script in every page that uses the external script file.
Doing this makes it far easier to edit the script as it can be done in one place rather than editing the code within the script tags on each page that contains the script.
Java, for the uninitiated, is a powerful object oriented programming language used for creating complex, platform-independent (i.e. they can run on any operation system) caninariojana.com: Kasia Mikoluk.