Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static String text = "This is a copy pasta text";
- // This block of code finds spaces in a sentence. Like a total space in text for Example: 8.
- for (n=0,m=0; n<text.length(); n++) {
- char ch = text.charAt(n);
- if (ch == ' ') {
- m++;
- }
- }
- // This block of code finds indexes at spaces. Like [4, 7, 9, 14, 20]
- while ((index = text.indexOf(' ',index+1)) >0) {
- add.add(index);
- builder.setCharAt(index,chars(charss));
- }
- // This block of code stores emojis in an array. Like [π, π, π, π³, π]
- for (int v=0; v<m; v++){
- String s = EmojiParser.parseToUnicode(pickRandomEmoji(emojiNames));
- f.add(s);
- }
- // I want input something like this ==> Thisπisπaπcopyπ³pastaπtext.
Add Comment
Please, Sign In to add comment