title: HackerRank says ~ no response on stdout ~
body: <p>So I was solving this Question on HackerRank (Project Euler Q1) <a href="https://www.hackerrank.com/contests/projecteuler/challenges/euler001" rel="nofollow">link here</a>, and have used the following code to solve it</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  import java.text.*;
  import java.math.*;
  import java.util.regex.*;
  
  public class Solution {
  
  public static void main(String[] args) {
      /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
  
      int T = 0;
      ArrayList&lt;Integer&gt; N = new ArrayList&lt;Integer&gt;();
      String[] Input = args;
      if  (args.length&gt;1){
          T = Integer.parseInt(args[0]);
          if(T&lt;1||T&gt;Math.pow(10,6))
              System.exit(0);
      }
      if (args.length-1 == T){
          for (int i=1;i&lt;args.length;i++){
              N.add(Integer.parseInt(args[i]));
              int sum3=0,sum5=0,sum15=0;
              int count=0;
              while (count&lt;N.get(i-1)){
                  sum3+=count;
                  count+=3;
              }
              count =0;
              while (count&lt;N.get(i-1)){
                  sum5+=count;
                  count+=5;
              }
              count =0;
              while (count&lt;N.get(i-1)){
                  sum15+=count;
                  count+=15;
              }
              N.set(i-1,(sum3+sum5-sum15));
          }
      }
      for(int j=0;j&lt;N.size();j++)
          System.out.println(N.get(j));
      }
  }
  </code></pre>
  
  <p>This gives me the following output on an IDE :</p>
  
  <pre><code>23
  2318
  </code></pre>
  
  <p>While Inputting : </p>
  
  <pre><code>2
  10
  100
  </code></pre>
  
  <p>And this matches the expected output on HackerRank, but however When I use this code on the website, It says :</p>
  
  <p>Input (stdin)</p>
  
  <pre><code>2
  10
  100
  </code></pre>
  
  <p>Your Output (stdout)</p>
  
  <pre><code>~ no response on stdout ~
  </code></pre>
  
  <p>Expected Output</p>
  
  <pre><code>23
  2318
  </code></pre>
  
  <p>Compiler Message</p>
  
  <pre><code>Wrong Answer
  </code></pre>
  
  <p>One thing I could observe was I couldn't print anything from inside a loop on HackerRank. What would the solution to this be?</p>