Converting Characters Into Numbers and Numbers Into Characters — Java
I need to change a string by shifting each letter by 3 (so “hello” would become “khoor”). I want to get the ASCII value of each character, add 3 to that integer, and convert the new integer back into a letter. I have scoured the internet and found answers that seem reasonable: use the string method toCareArray, loop through the characters and use the getNumericValue method, then add 3 to this number, then use (char)number.