Remove emoticons from a String using java
How to Remove the Emoticons from the String  My simple code is..

        public static void main(String[] args) throws SQLException {
		String str="My nam is  ur -D ";
		getRefineCode(str);
		
		}

	private static void getRefineCode(String str) throws SQLException 
	{
		List smstypeWord=getshortWord();

	
		for(int i=0;i<smstypeWord.size();i++)
		{
			String string=smstypeWord.get(i).toString();
			String stringcon[]=string.split("_");
			String emessage=stringcon[0];
			String emoticon=stringcon[1].trim();
		//	System.out.println("--------->");
			if(str.contains(emoticon))
			{
				str=str.replace(emoticon, emessage);
				System.out.println("=================>"+str);
			}
			
			
		}
		System.out.println("=======++==========>"+str);
		

		
	}

                 private static List getshortWord() throws SQLException {
		String query1 = "SELECT * FROM englishSmsText";
		PreparedStatement ps = conn.prepareStatement(query1);
		ResultSet rs = ps.executeQuery();
		String f_message="";
		String s_message="";
		while(rs.next())
		{
			s_message=rs.getString("message");
			f_message=rs.getString("short_text");
			shortMessage.add(s_message+"_"+f_message);
			//fullMessage.add(f_message);
		}
		return shortMessage;
	}

my database is based on http://smsdictionary.co.uk/abbreviations site

i able to understand how to remove the multiple abb. or short message
Remove emoticons from a String using java
===

How to Remove the Emoticons from the String  My simple code is..

        public static void main(String[] args) throws SQLException {
		String str="My nam is  ur -D ";
		getRefineCode(str);
		
		}

	private static void getRefineCode(String str) throws SQLException 
	{
		List smstypeWord=getshortWord();

	
		for(int i=0;i<smstypeWord.size();i++)
		{
			String string=smstypeWord.get(i).toString();
			String stringcon[]=string.split("_");
			String emessage=stringcon[0];
			String emoticon=stringcon[1].trim();
		//	System.out.println("--------->");
			if(str.contains(emoticon))
			{
				str=str.replace(emoticon, emessage);
				System.out.println("=================>"+str);
			}
			
			
		}
		System.out.println("=======++==========>"+str);
		

		
	}

                 private static List getshortWord() throws SQLException {
		String query1 = "SELECT * FROM englishSmsText";
		PreparedStatement ps = conn.prepareStatement(query1);
		ResultSet rs = ps.executeQuery();
		String f_message="";
		String s_message="";
		while(rs.next())
		{
			s_message=rs.getString("message");
			f_message=rs.getString("short_text");
			shortMessage.add(s_message+"_"+f_message);
			//fullMessage.add(f_message);
		}
		return shortMessage;
	}

my database is based on http://smsdictionary.co.uk/abbreviations site

i able to understand how to remove the multiple abb. or short message