Table of Contents
Page iv •Javelin Stamp Manual v1.1 •www.javelinstamp.com
switch.............................................................................................................................. 145
this .................................................................................................................................. 146
throw, throws.................................................................................................................. 147
try ................................................................................................................................... 147
void ................................................................................................................................. 149
while ............................................................................................................................... 149
JAVELIN STAMP OPERATOR REFERENCE............................................................................. 150
[ ].................................................................................................................................... 150
++, --.............................................................................................................................. 150
(type)............................................................................................................................... 150
+, -, *, /, %, ()................................................................................................................. 151
<<, >>, >>> ................................................................................................................. 152
<, >, <=, >=, ==, != .................................................................................................... 153
&, |, ^ .............................................................................................................................. 153
&&, || ............................................................................................................................. 154
~, ! .................................................................................................................................. 154
?:..................................................................................................................................... 154
instanceof ....................................................................................................................... 155
UNUSED KEYWORDS........................................................................................................... 156
Unsupported Reserved Words:....................................................................................... 156
7: WORKING WITH OBJECTS ....................................................................................... 157
WHAT'S AN OBJECT?........................................................................................................... 157
Encapsulation................................................................................................................. 159
Polymorphism................................................................................................................. 160
Class Relationships ........................................................................................................ 161
An Object Oriented Example.......................................................................................... 161
Decoupling the Code...................................................................................................... 164
Virtual Peripherals......................................................................................................... 167
A Timer Example............................................................................................................ 168
Object-Oriented Opportunity ......................................................................................... 170
8: OBJECT REFERENCE .................................................................................................. 173
THE JAVA.LANG PACKAGE.................................................................................................... 173
Boolean........................................................................................................................... 173
Error............................................................................................................................... 174
Exception........................................................................................................................ 174
IndexOutOfBoundsException ......................................................................................... 175
Math ............................................................................................................................... 175
NullPointerException ..................................................................................................... 175