Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道错误来自哪里“无法访问的语句在此处输入图像描述”
你有一个return声明之前的if声明。如果您返回,您的if语句将如何执行。因此if变得遥不可及。
return
if
删除这一行:
return new String[0];