Guest User

Untitled

a guest
Apr 26th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Scanner plain = new Scanner (System.in);
  2. String alpha ="abcdefghijklmnopqrstuvwxyz",plaintext;
  3. System.out.println ("please enter your Message :");
  4. plaintext = plain.nextLine().toLowerCase().replaceAll("\s+", "");
  5. for (int a = 0; a < plaintext.length(); a++ ){
  6. char z = plaintext.charAt(a);
  7. int y = alpha.indexOf (z);
  8. for (int c=0; c<26; c++){
  9. if (c == y) continue;
  10. System.out.println (c);
  11. }
  12. }
Add Comment
Please, Sign In to add comment