Here you can find the source of emoji(String emoji)
Parameter | Description |
---|---|
emoji | the emoticon to add to the string |
public static String emoji(String emoji)
//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>"; } }