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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -