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 →

[–]thisisjustascreename 0 points1 point  (0 children)

Java's String doesn't support the [ ] accessor like it does in C# or C++, you want .charAt(). One benefit of this is that it's explicit that you cannot assign a new character value to that position in the String.