title: Mid function in Java - Similar to VB?
body: <p>In Visual Basic I used to use the Mid function to loop through a string and examine each character, i.e. like this:</p>
  <pre class="lang-vb prettyprint-override"><code>For intPosition = 1 To strlength
      ' loop to examine each character in turn
      strchar = Mid(strstring, intposition, 1)
  Next
  </code></pre>
  <p>Question is, how would I go about doing something similar using Java?</p>