I don't understand the % comment.length
bit of the following code:
comment.charAt(i % comment.length())
Does the part between the brackets convert to an integer with the value that represents i
in relation to the comment length?
For instance, if:
comment = "test"
i = 2
what would comment.charAt(i % comment.length())
be?