OSDN Git Service

lejos_NXJ_win32_0_5_0beta.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / samples / ExceptionTest / ExceptionTest.java
1 import lejos.nxt.*;
2
3 /**
4  * Simple test of leJOS exceptions.
5  * 
6  * This causes an ArrayIndexOutOdBoundsException.
7  * 
8  * Use the --verbose (-v) flag on nxj or nxjlink to see
9  * the values of classes and methods (signatures) for
10  * your program.
11  *  
12  * @author Lawrie Griffiths
13  *
14  */
15 public class ExceptionTest {
16         
17         public static void main (String[] aArg)
18         throws Exception
19         {
20                 SensorPort p = SensorPort.PORTS[5];
21         }
22 }