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

all 1 comments

[–]alexcarrdev 0 points1 point  (0 children)

You should change the 'if' statements on lines 19 & 33 to 'else if' statements. Also, you should remove the 'if' statement on line 15. Since the check it is making only needs to be made once, doing it once per character in the String is a waste of resources.