从无法访问的项目Fork
体验新版 GitCode,发现更多精彩内容 >>
原文中的校验,存在边界问题,当 String[] strs = {};或者 String[] strs = null;时仍然会报错。