java - How to extract the left most common characters in a string list? -


assume have following list of string objects:

abc1, abc2, abc_whatever 

what's efficient way extract left common characters list ? i'd abc in case.

stringutils.getcommonprefix(string... strs) apache commons lang.


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

Admob integration with pygame in android -

python - duplicate table (identical) including primary key - using django south -