javaQQ
January 13th, 2003, 07:16 PM
I would like to use a value stored in a vector of vectors as a Prepared Statement parameter.
This attempt:
for ( int i = 1; i < ( 10 ); i++ ) {
...
pstmt.setString( 4, (String)((Vector)orderDataVector.elementAt(i)).elementAt(2) );
...
}
Returns this error:
...: Method elementAt(int) not found in class java.lang.Object.
insertSpecs.setString( 4, (String)((Vector)orderDataVector.elementAt(i)).elementAt(2) ); // supplied_materials;
^
How do I fix this?
Many thanks in advance.
This attempt:
for ( int i = 1; i < ( 10 ); i++ ) {
...
pstmt.setString( 4, (String)((Vector)orderDataVector.elementAt(i)).elementAt(2) );
...
}
Returns this error:
...: Method elementAt(int) not found in class java.lang.Object.
insertSpecs.setString( 4, (String)((Vector)orderDataVector.elementAt(i)).elementAt(2) ); // supplied_materials;
^
How do I fix this?
Many thanks in advance.