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 -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -