How can I change
if(xmlComboBoxValues.get(0) == null){
cstmt.setNull(i++,java.sql.Types.NVARCHAR);
}
else {
cstmt.setString(i++, (String) xmlComboBoxValues.get(0));
}
as a ? : expressing in java?
Here is what I have but the syntax is obviously wrong.
xmlComboBoxValues.get(0) == (null) ? cstmt.setNull(i++,java.sql.Types.NVARCHAR) : cstmt.setNull(i++,java.sql.Types.NVARCHAR);
nullxmlComboBoxValues.get(0) == nulland it should be ok.voidmethod call, so you can't do that.