Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public static void main(String [] args) {
  2. Scanner in = new Scanner(System.in);
  3. while (in.hasNextLine()){
  4. String cha = in.nextLine();
  5. for (int x = 0; x < cha.length(); x++)
  6. {
  7. char letra = (char)(cha.charAt(x)+6);
  8. if (((cha.charAt(x)+6) <= 90) && ((cha.charAt(x)+6) >= 65))
  9. {
  10. System.out.print(letra);
  11. }
  12. else
  13. }
  14.  
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement