extract Hashtag - Android android.util

Android examples for android.util:Patterns

Description

extract Hashtag

Demo Code


public class Main{

    public static String extractHashtag(String htTitle) {
        return htTitle.substring(htTitle.indexOf("#") + 1);
    }// w ww  . j a va  2  s.  c  o m

}

Related Tutorials