title: How to stop printing null in an array
body: <p>How do I stop my program from printing out the positions of the array that are null, when I'm going through an array and printing the positions out?</p>
  
  <pre><code>for(int i=0;i&lt;array.length;i++)
  {
    System.out.print(array[i]);
  }
  </code></pre>
  
  <p>It's simple like this, but how do I stop it from printing out the positions that are null?
  Thanks in advance for an answer to this simple question...</p>