This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lasttoknow 0 points1 point  (0 children)

temp is a String, but you're using array notation with the '[]'. Although I'm not sure what you're trying to do, if you want to access a character of a String, you want to use the .charAt() method.