I am new to the world of java programming, and I am working on basic shift encrytion. Here is what I need the program to do:
User inputs a single lower-case letter or upper-case letter or number (0-9).
User inputs number of places to shift letter or number (i.e. user types in 0 and shifts 2, the encrypted output is 2).
I have the code working to shift the input successfully, but I can't get the numbers or letters to wrap around. I need to limit this to letters and numbers only, no special characters.
I am converting the input char to its ASCII value to do the operations.
Any suggestions on how to detect input and do the wrap around?
Example of what I mean by wrap around:
User inputs Z and shifts 2 places, should be come a B, not a \.
Thank you in advance!