import java.sql.Date; import java.sql.SQLException; import oracle.sqlj.runtime.Oracle; class ExprDemo { public static void main( String[] arg ) { try { new ExprDemo().runExample(); } catch( SQLException e ) { System.err.println( "Error running the example: " + e ); } } ExprDemo() throws SQLException { /* if you're using a non-Oracle JDBC Driver, add a call here to DriverManager.registerDriver() to register your Driver */ // set the default connection to the URL, user, and password // specified in your connect.properties file Oracle.connect(getClass(), "connect.properties"); } int[] array; int indx; Integer integer; class Demo { int field = 0; } Demo obj = new Demo(); int total; void printArray() { System.out.print( "array[0.." + (array.length-1) + "] = { " ); int i; for( i=0;i 0 THEN :OUT integer := 1; ELSE :OUT integer := 2; END IF; END; }; printInteger(); System.out.println(); /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ } }