Current Page:
NeXtMidas Training
Primitives
Lab 1
Instructions
|
|
- Lab 1:
- Create a new primitive called
primlab1 .
- Copy the skeleton of the primitive and paste it into your file.
- Code skeleton: primlab1.java
- Be sure to save the above file as
primlab1.java (all lower-case)!
Put it in the prim area of your option tree.
- On the first line of the file you will need to change the package
to match your option tree.
- Fill in the missing code:
- Use
UPDATE to update the command dictionary.
- Use
BUILD or BLD to build the primitive.
- Once you are done, give it a try. The output should match the
example given above.
|
|
|