title: Is there such thing as math.substring in java?
body: <p>Okay, I'm just getting curious. But I was wondering if there was such thing as a substring for numbers (math.substring ?), and then it would get the character(s) in the position specified.</p>
  
  <p>Example (really poorly thought out one)</p>
  
  <pre><code>int number = 5839;
  int example = number.substring(0,1)
  println = example;
  </code></pre>
  
  <p>and then it displays 5?</p>