title: QUICKSORT Not giving sorted array
body: <p>The Output: ATXZK (Not Sorted) Why?
  There are no bugs in it. I can not figure it out.
  Is there any problem with the method qs(items, left, right)
  It works fine with input: d x a r p j i</p>
  
  <pre><code>class Quicksort{
  
  static void qsort(char items[]) {
      qs(items, 0, items.length - 1);
  }
  
  private static void qs(char items[], int left, int right)
  {
      int i, j;
      char x, y;
  
      i = left; j = right;
      x = items[(left + right)/2];
  
      do {
          while((items[i] &lt; x) &amp;&amp; (i &lt; right)) i++;
          while((x &lt; items[j]) &amp;&amp; (j &gt; left)) j--;
  
          if(i &lt;= j) {
              y = items[i];
              items[i] = items[j];
              items[j] = y;
              i++; j--;
          }
      } while(i &lt;= j);
  
      if(left &lt; j) qs(items, left, j);
      if(i &gt; right) qs(items, i, right);
  
  
  }
  </code></pre>
  
  <p>}</p>