I have a problem with the code below. Compiler says incompatible types, java.lang.object[][] required but found java.lang.object[].
Anyone have an idea why this is? I've found some about generics that gives problems here but no solution to my problem.
Object sqlQuery[][] = null;
List<Object[]> sqlLista = new ArrayList<Object[]>();
while (resultSet.next()) {
sqlLista.add(new Object[] { false, resultSet.getString("MMITNO"), null, null, null, null, null } );
}
sqlQuery = sqlLista.toArray();
edit: I have edited the code above as i see i had made a mistake with the dimensions