title: How to print the score related to each line separately?
body: <p>I have a data printed in line (strings) and the scores of each line. I need to combine each line with its specific score. for example the data is as follows :</p>
  
  <pre><code>[2.0,-2.0,-2.0,-2.0,2.0,-2.0,2.0,-2.0,2.0,-2.0,2.0,2.0,2.0,2.0] 
  [-2.0,-2.0,0.0,-2.0,-2.0,-2.0,-2.0,2.0,0.0,2.0,0.0,2.0,-2.0,0.0]
  [2.0,0.0,-2.0,2.0,2.0,-2.0,0.0,0.0,-2.0,0.0,-2.0,0.0,-2.0,0.0]
  [2.0,2.0,-2.0,-2.0,2.0,2.0,2.0,2.0,-2.0,2.0,2.0,2.0,-2.0,2.0]
  [-2.0,0.0,-2.0,-2.0,0.0,0.0,-2.0,2.0,-2.0,-2.0,2.0,2.0,0.0,0,0]
  </code></pre>
  
  <p>while the scores as follows</p>
  
  <pre><code>0.003484028626591704
  0.023784473319415262
  0.09279109045534298
  0.14760754728366166
  0.16830002995397936
  </code></pre>
  
  <p>so the result should be each line must take the related score as follows </p>
  
  <pre><code>[2.0,-2.0,-2.0,-2.0,2.0,-2.0,2.0,-2.0,2.0,-2.0,2.0,2.0,2.0,2.0] 0.003484028626591704
  [-2.0,-2.0,0.0,-2.0,-2.0,-2.0,-2.0,2.0,0.0,2.0,0.0,2.0,-2.0,0.0] 0.023784473319415262
  [2.0,0.0,-2.0,2.0,2.0,-2.0,0.0,0.0,-2.0,0.0,-2.0,0.0,-2.0,0.0] 0.09279109045534298
  [2.0,2.0,-2.0,-2.0,2.0,2.0,2.0,2.0,-2.0,2.0,2.0,2.0,-2.0,2.0] 0.14760754728366166
  [-2.0,0.0,-2.0,-2.0,0.0,0.0,-2.0,2.0,-2.0,-2.0,2.0,2.0,0.0,0,0] 0.16830002995397936
  </code></pre>
  
  <p>so far i use the following code </p>
  
  <pre><code> double []  fX3 =new double [numberofrows];
      double d=0.0;
      for(int r = 0; r &lt; numberoffeatures-1; r++) 
          {
              List&lt;Double&gt; array1=  new ArrayList&lt;Double&gt;();
  
  
              for(int c = 0; c &lt; numberofrows; c++)
              {
                  int valf3 = datasetMat[c][r];
                  fX3[c] = valf3;
                  array1.add(fX3[c]);
                       for (int i = 0; i&lt;su.noAttributes(); i++){
                    d = (su.score(i));}
                  } 
             System.out.println(array1+" "+d);
   }
  </code></pre>
  
  <p>but it gives me the following result where all the lines take the last score which is not right  </p>
  
  <pre><code>[2.0,-2.0,-2.0,-2.0,2.0,-2.0,2.0,-2.0,2.0,-2.0,2.0,2.0,2.0,2.0] 0.16830002995397936
  [-2.0,-2.0,0.0,-2.0,-2.0,-2.0,-2.0,2.0,0.0,2.0,0.0,2.0,-2.0,0.0] 0.16830002995397936
  [2.0,0.0,-2.0,2.0,2.0,-2.0,0.0,0.0,-2.0,0.0,-2.0,0.0,-2.0,0.0] 0.16830002995397936
  [2.0,2.0,-2.0,-2.0,2.0,2.0,2.0,2.0,-2.0,2.0,2.0,2.0,-2.0,2.0] 0.16830002995397936
  [-2.0,0.0,-2.0,-2.0,0.0,0.0,-2.0,2.0,-2.0,-2.0,2.0,2.0,0.0,0,0] 0.16830002995397936
  </code></pre>
  
  <p>An help would be appreciated</p>