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
Post a Comment