We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I tried this code .. it's working fine. But I have one doubt. When the string input is -(hyphen) then I didn't see anycode adding the hyphen to the buffer. But in the print statement it displays the hyphen as well.. can someone please explain the same as I am new in java.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Caesar Cipher
You are viewing a single comment's thread. Return to all comments →
I tried this code .. it's working fine. But I have one doubt. When the string input is -(hyphen) then I didn't see anycode adding the hyphen to the buffer. But in the print statement it displays the hyphen as well.. can someone please explain the same as I am new in java.