Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner plain = new Scanner (System.in);
- String alpha ="abcdefghijklmnopqrstuvwxyz",plaintext;
- System.out.println ("please enter your Message :");
- plaintext = plain.nextLine().toLowerCase().replaceAll("\s+", "");
- for (int a = 0; a < plaintext.length(); a++ ){
- char z = plaintext.charAt(a);
- int y = alpha.indexOf (z);
- for (int c=0; c<26; c++){
- if (c == y) continue;
- System.out.println (c);
- }
- }
Add Comment
Please, Sign In to add comment