Code example for LinkedList

Methods: toArray

0
    } 
  } 
 
  @Override 
  public String[] getColumnNames() {
    List<String> columnNames = new LinkedList<String>();
 
    try { 
 
      for (int i = 0; i < statement.column_count(); i++)
        columnNames.add(statement.column_name(i));
 
    } catch (jsqlite.Exception e) {
      throw new SQLException(e.toString());
    } 
 
    return (String[]) columnNames.toArray();
  } 
 
  @Override 
  public int getColumnCount() { 
    try {