title: Shift array elements by n posisition
body: <p>I've got <code>method</code> to move elements in <code>array</code>, move to right work fine, move to left work incorrect. Method get two incoming parameters:</p>
  <p>1st: <code>array</code></p>
  <p>2nd: <code>int</code> variable to move element on this <code>int</code> parameter.</p>
  <p>Here is my method:</p>
  <pre><code>private static int[] arrShift(int[]arr, int count) {
      if (count &gt;= 0) {
          for (int i = 0; i &lt; count; i++) {
              int temp = arr[arr.length - 1];
              for (int j = arr.length - 2; j &gt; -1; j--) {
                  arr[j + 1] = arr[j];
              }
              arr[0] = temp;
          }
      }
      if (count &lt; 0){
          count *=-1;
          int temp = arr[0];
          for (int i = 0; i &lt; count; i++) {
              for (int j = 0; j &lt; arr.length -1; j++) {
                  arr[j] = arr[j + 1];
              }
          }
          arr[0] = temp;
      }
      return arr;
  }
  </code></pre>
  <p>How shift elements to left?</p>