Importing Files

  1. Create a new project with the name "Lab4"

  2. Create a new package with the name "lab4"

  3. Download the following files and save them to your directory of preference (Use the desktop if you are not sure)
    • Download the Lab4 class here
    • Download the ArrayInstance class here
    • Download the ArrayStatic class here

  4. To import the files
    • Go to File->Import
    • Select File System and click next




    • Browse to location of the files, which is the folder into which you saved them
    • The Into folder that it asks for is "Lab4/src/lab4" which places the files in the folder/package lab4
    • Click Finish to import the files


Method comments

Setting Method Comments

Java coding standards can be found on the course project page. In Eclipse, various templates for coding styles and comments can be set. For example, you can navigate to "Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments -> Files" and define your method comments.

Code Templates