title: Java interfaces: compiler error
body: <p>I was playing around with java interfaces a little and tried to implement a stack.<br>
  However, as soon as I added the constructor I got a compiler error:</p>
  
  <pre><code>./DefaultStack.java:5: error: &lt;identifier&gt; expected
  DefaultStack&lt;T&gt; () {
                    ^
  </code></pre>
  
  <p>Here's my code:</p>
  
  <pre><code>public class DefaultStack&lt;T&gt; implements Stack&lt;T&gt; {
      DefaultStack&lt;T&gt; () {
  
      }
  }
  </code></pre>
  
  <p>This is probably a really obvious mistake, but I'm kinda new to Java.</p>