title: Display elements without redundancy in an array
body: <p>I made this code. I think it is wrong.</p>
  
  <pre><code>public void display() {
      for (int i = 0; i &lt; tabT.length; i++)
          if (tabT[i] != null)
              for (int j = 0; j &lt;= i; j++)
                  if (tabT[i] != tabT[j])
                      System.out.println(tabT[i].getCar());
  }
  </code></pre>
  
  <p>How do I display elements without redundancy in an array?</p>