title: Split number into groups of 3 digits
body: <p>I want to make a method that takes a variable of type <code>int</code> or <code>long</code> and returns an array of <code>int</code>s or <code>long</code>s, with each array item being a group of 3 digits. For example:</p>
  
  <pre><code>int[] i = splitNumber(100000);
  // Outputs { 100, 000 }
  
  int[] j = splitNumber(12345);
  // Outputs { 12, 345 }
  
  int[] k = splitNumber(12345678);
  // Outputs { 12, 345, 678 }
  // Et cetera
  </code></pre>
  
  <p>I know how to get the last <em>n</em> digits of a number using the modulo operator, but I have no idea how to get the <em>first</em> n digits, which is the only way to make this method that I can think of. Help please!</p>