Conversion char/integer/char

Hi !
I´m working on a program that implements the famus ceasar encryption, but i can´t manage to convert a character to an integer and back to a character again ( I want to substistute an char with another one three "steps" forward ( an a turns into d an so on)). I only want the conversion algorithm. Please help me, it´s driving me crazy....
Who is Participating?
sen_kumConnect With a Mentor Commented:
class Test
  public static void main( String args[] ) throws Exception
    char c1 = 'a' ;
    char c2 = (char) (c1 + 3) ;
    System.out.println ( c2 ) ;
sa9824Author Commented:
Thank you very much.....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.