title: (java) how to split a number on parts and then compare them to each other
body: <p>I wonder how to split a number on parts and then compare them to each other</p>
  
  <p>For instance, I've got a set of numbers </p>
  
  <pre><code> 989010
   990009
   991008
   992992
   993006
   994005
   995004
  </code></pre>
  
  <p>and I want to divide each of numbers on two parts -->> </p>
  
  <pre><code>if it's 989010 -- it will be like '989' and '010'. 
  </code></pre>
  
  <p>After that, I think I can just compare two strings, right? </p>
  
  <p>I mean, </p>
  
  <pre><code>   '989' != '010'  true
     '990' != '009'  true 
     '992' != '992'  false
  </code></pre>
  
  <p>it seems I should use the split function, however I confused how to separate only on two parts rather than more</p>
  
  <p>Thanks in advance!</p>