title: How to fill TableView's Column with a values from an array
body: <p>I have an <code>ObservableList</code> of instances of class <code>GameLogEntry</code>:</p>
  
  <pre><code>public class GameLogEntry {
      private int gameNumber;
  
      private int chosenStratA;
      private int chosenStratB;
  
      private Double[] scoresByB;
      private Double[] scoresByA;
  
      private double higherPrice;
      private double lowerPrice;
      private double averagePrice;
  
      private int maxIndex;
  </code></pre>
  
  <p>In my program I populate TableView's columns with values from this ObservableList.
  <a href="https://i.stack.imgur.com/qsFKA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qsFKA.png" alt="enter image description here"></a></p>
  
  <p>My columns:</p>
  
  <pre><code>@FXML
      private TableColumn&lt;GameLogEntry, String&gt; colGameNum;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colChosenStratA;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colScoreByBOne;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colScoreByBTwo;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colChosenStratB;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colScoreByAOne;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colScoreByATwo;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colLowerPrice;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colHigherPrice;
  
      @FXML
      private TableColumn&lt;GameLogEntry, String&gt; colAveragePrice;
  </code></pre>
  
  <p>I'm doing it like this in <code>initialize</code> method:</p>
  
  <pre><code>colGameNum.setCellValueFactory(new PropertyValueFactory&lt;GameLogEntry, String&gt;("gameNumber"));
  colChosenStratA.setCellValueFactory(new PropertyValueFactory&lt;GameLogEntry, String&gt;("chosenStratA"));
  colChosenStratB.setCellValueFactory(new PropertyValueFactory&lt;GameLogEntry, String&gt;("chosenStratB"));
  colHigherPrice.setCellValueFactory(new PropertyValueFactory&lt;GameLogEntry, String&gt;("higherPrice"));
  colLowerPrice.setCellValueFactory(new PropertyValueFactory&lt;GameLogEntry, String&gt;("lowerPrice"));
  colAveragePrice.setCellValueFactory(new PropertyValueFactory&lt;GameLogEntry, String&gt;("averagePrice"));
  </code></pre>
  
  <p>But also I need to fill CS(B1), CS(B2), CS(A1) and CS(A2) columns.</p>
  
  <p>CS(B1) should be filled with scoresByB[0], </p>
  
  <p>CS(B2) - with scoresByB[1], </p>
  
  <p>CS(A1) - with scoresByA[0],</p>
  
  <p>CS(A2) - with scoresByA[1].</p>
  
  <p>The question is - can I do it with the same simple methods like I did with other values? And if no, how can I do it in any other ways?</p>