title: Trying to convert from decimal to octal. Why is my array returning like this?
body: <p>I'm a new programmer trying to convert a decimal number to an octal number but when I try to print my array it keeps giving me a weird value. Any thoughts on why?</p>
  
  <pre><code>    int i = 0;
      int p = 1;
      int[] octalTotal = new int[16];
      int copyTotal = total;
      int value = 0;
  
      while (copyTotal &gt;0) {
          value = copyTotal % 8;
          System.out.println(value);
          copyTotal = copyTotal / 8;
          octalTotal[p] = value;
          i++;
          System.out.println(octalTotal);
      }
  </code></pre>
  
  <p>Returns: 
  1
  [I@7eda2dbb
  2
  [I@7eda2dbb
  5
  [I@7eda2dbb</p>