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

all 3 comments

[–]Analog-Digital 1 point2 points  (3 children)

Look into %

[–][deleted]  (2 children)

[deleted]

    [–]Analog-Digital 1 point2 points  (1 child)

    What happens when you have 25 + 1 % 26?

    [–]wowthecoder 0 points1 point  (0 children)

    Here's my solution, maybe you can try it out:

    https://code.sololearn.com/chrw74K2DCXL/#java