hadeel marghlany wrote:am trying to do a Vigenere java program put the cipher text in the output apears empty
Well, my first suggestion would be to break up that awful
cipher = cipher+ letter.charAt((letter.indexOf (key.charAt(j)+letter.indexOf (message.charAt(j)))) %26);
line into something more readable.
I'm also not quite sure why you're using
indexOf(). A Vignere cypher should use direct indexes, not searches.
Winston