Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Main {
- public static void main(String str[]) {
- Scanner userInput=new Scanner(System.in);
- String input = userInput.next();
- System.out.println(b(input));
- }
- public static String b(String input) {
- String res="";
- for(int i=0; i<input.length(); i++) {
- if(Character.isLetter(input.charAt(i))) {
- res+="🅱️";
- }
- else {
- res+=input.substring(i, i+1);
- }
- }
- return res;
- }
- }
Add Comment
Please, Sign In to add comment