title: what is the difference between a++ and ++a or a-- and --a in java?
body: <pre><code> public void push(E element) {
      if (size == elements.length) {
          resize(); // doubel of size
      }
      elements[size++] = element;
  }
  
  
  public E pop() {
      if (size == 0) {
          throw new java.util.EmptyStackException();
      }
      E element = elements[--size];
      elements[size] = null; // set null in last top
      return element;
  }
  </code></pre>
  
  <p>what is the difference between a++ and ++a or a-- and --a  in java</p>
  
  <p>thanks</p>