title: Arrays of Object[]
body: <p>Assign Object[] to Object[]</p>
  
  <pre><code>public TableDB(){
          model = new DefaultTableModel();
  
          table = new JTable(model){/*{ public boolean isCellEditable(int rowIndex, int colIndex) {
              return editMode; //Disallow the editing of any cell
              }}*/;
          /*public Class&lt;?&gt; getColumnClass(int columnIndex) {
              switch (columnIndex) {
                  case 0:
                      return String.class;
                  case 1:
                      return Integer.class;
                  default:
                      return Boolean.class;
          }}*/};
          addColumnFromDB();
          addDataFromDB();
          JScrollPane scrollPane = new JScrollPane(table);
          //model.addColumn("Name"); 
          //model.addColumn("Score"); 
          //
          this.add(new JScrollPane(table));
          table.setCellSelectionEnabled(false);
  
      }
  
      public void addDataFromDB(){
          Object[] data = bl.getData();
          for(int i = 0;i&lt;data.length;i++){
             model.addRow(data[i]); 
          }
      }
  </code></pre>
  
  <p>Other class</p>
  
  <pre><code>public Object[] getData()
  {
      Object[] data ={"a"};
      return data;
  }
  </code></pre>
  
  <p>Compiler says "no suitable method found for addRow(java.lang.Object)" but i use Object[]
  The problem is in <code>model.addRow(data[i]);</code></p>