title: Changing values to combobox from an array
body: <p>I need to load values from an array to a combobox, with this code it loads only the last value of the array? Can anyone help me please.</p>
  
  <pre><code>for(int i =0; i&lt;lines.size(); i++) {
      resultArray[i] = lines.get(i).split("\t");
  
      Laptops[i] = resultArray[i][0];
      ObservableList&lt;String&gt; option = FXCollections.observableArrayList(Laptops[i].toString());
  
      cbx1.setValue("");
      cbx1.setItems(option);
  
      cbx2.setValue("");
      cbx2.setItems(option);
  
      cbx3.setValue("");
      cbx3.setItems(option);
  }
  </code></pre>