If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

you can have your str for your class and pass in your inputChar as an agument to your checkChar( char inputChar ) method, then loop through your string to test if inputChar == str.charAt(index) ... return index if found or -1 if not found ...

also - you assign the value of length to len ... why aren't you using len as your loop sentinel rather than accessing your arrayList every loop?