In Visual Basic I used to use the Mid function to loop through a string and examine each character, i.e. like this:
For intPosition = 1 To strlength
' loop to examine each character in turn
strchar = Mid(strstring, intposition, 1)
Next
Question is, how would I go about doing something similar using Java?
Take a look at the charAt(int) method of the String class.