No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey guys I hope you can help me with this problem, its like a minor problem. ----PROBLEM----- I don't know how to generate the secret code... meaning if the input was: { c.println (generateCipherAlphabet ("COMPUTER SCIENCE)); } Above only outputs "COMPUTERSINQVWXYZABDFGHJKL" which is the cipher alphabet only I want it … |
|
public class GenerateCipher { /** To generate keyPhrase into cipher alphabet and secret code * @param keyPhrase keyPhrase to be changed * @return changed keyPhrase */ public static String generateCipherAlphabet (String keyPhrase) { //defines the variables and creates alphabet string String realStr = ""; String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String newStr … |