Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String [] args) {
- Scanner in = new Scanner(System.in);
- while (in.hasNextLine()){
- String cha = in.nextLine();
- for (int x = 0; x < cha.length(); x++)
- {
- char letra = (char)(cha.charAt(x)+6);
- if (((cha.charAt(x)+6) <= 90) && ((cha.charAt(x)+6) >= 65))
- {
- System.out.print(letra);
- }
- else
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement