Java Emoji Check emoji(String emoji)

Here you can find the source of emoji(String emoji)

Description

Add emoji to text

License

Open Source License

Parameter

Parameter Description
emoji the emoticon to add to the string

Return

string with the emoji

Declaration

public static String emoji(String emoji) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from  w w  w.  jav a 2 s .c  om*/
     * Add emoji to text
     *
     * @param emoji the emoticon to add to the string
     * @return string with the emoji
     */
    public static String emoji(String emoji) {
        return "<ss type=\"" + emoji.replace("(", "").replace(")", "") + "\">" + emoji + "</ss>";
    }
}

Related

  1. emoji(int hexEmoji)
  2. filterEmoji(String source)
  3. isEmoji(char c)
  4. resolveToEmoji(String str)
  5. resolveToEmojiFromByte(String str)