Guest User

Untitled

a guest
Apr 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class Main {
  4. public static void main(String str[]) {
  5. Scanner userInput=new Scanner(System.in);
  6. String input = userInput.next();
  7. System.out.println(b(input));
  8. }
  9. public static String b(String input) {
  10. String res="";
  11. for(int i=0; i<input.length(); i++) {
  12. if(Character.isLetter(input.charAt(i))) {
  13. res+="🅱️";
  14. }
  15. else {
  16. res+=input.substring(i, i+1);
  17. }
  18. }
  19.  
  20. return res;
  21. }
  22.  
  23. }
Add Comment
Please, Sign In to add comment