title: System.out.println is not printing output
body: <p>Here is my code to find even Fibonacci numbers and to add them:</p>
  
  <pre><code> package a;
   import java.util.*;
  
  public class A {
  
   //this about finding Even Fibonacci numbers and adding them to sum.
  
  public static void main(String[] args) {
      Scanner in = new Scanner(System.in);
      int t = in.nextInt();
      int[] n = new int[t];
      int[] nn = new int[t];
      int i,j,sum;
      for(int a0 = 0; a0 &lt; t; a0++){
          n[a0] = in.nextInt();            
      }
      nn[0]=1;
      for(i = 0 ; i&lt;t;i++){
          sum = 0;
          for(j= 1;j&lt;n[i];j++){                
              nn[j] = j+nn[j-1];
              if(nn[j]%2==0)
                  {
                  sum += nn[j];
                  }
              }            
          System.out.println(sum); //this is not printing the output
      }
  }
  }
  </code></pre>
  
  <p>Sample Input </p>
  
  <p>2
  10
  100</p>
  
  <p>Sample Output </p>
  
  <p>10
  44</p>
  
  <p>The problem is that this line <code>System.out.println(sum);</code> is not printing anything.</p>
  
  <p>Any ideas?</p>