Obtaining the Board class

 

The Board class as well as other related classes are all contained in a file called BaseBoard.java.   You can download the file here (right-click on the link and click on save) to a folder on your computer where you intend to save your programs.  After downloading the file, open it using your editor, whether it’s DrJava or JCreator and compile it.  Once you’ve compiled it, close the file.  For now, you will not be adding or modifying the code in BaseBoard.java.  Instead, you will be writing code in a separate class (in a separate file), which will use the Board class.  This is no different from us writing code that uses the System or Scanner class.  The one thing to keep in mind is that programs you write that use the Board class must be in the same folder.  This will simplify things.  If you mistakenly make modifications to BaseBaord.java, you could always obtain a fresh copy from the Web page.  Erase the existing file and compile the new one.