Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.lang.*;
- class main{
- public static void main(String args[]){
- Scanner input = new Scanner(System.in);
- String S;
- String W = "1234567890-=qwertyuiop[]\\asdfghjkl;\'zxcvbnm,./";
- while(input.hasNext())
- {
- S = input.nextLine();
- S = S.toLowerCase();
- for(int i = 0; i < S.length();++i)
- for(int j = 2; j < W.length();++j)
- {
- if(S.charAt(i) == 32)
- {
- System.out.print(" ");
- break;
- }
- if(S.charAt(i) == W.charAt(j))
- System.out.print(W.charAt(j-2));
- }
- System.out.println("");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement