如何用java语言返回一组字符串的最长公共前缀?例如abcd,abc,abcdef,返回abc.public static void main(String[] args) {String[] s = new String[]{"abcfg","abef","abdgg"2023-02-21JavaScript240