我很困惑,返回语句应该是什么。private static int [] wordLengths(String [] words)
这是我有:
private static int[] wordLengths(String[] words)
{
String[] words = in.nextLine();
String[] array = 0;
if(words > 0)
{
int[] wordLengths = words.length();
}
return
}
只是word.Length – MarBVI
你知道这个程序是不正确的。试着多解释一下你想要做的事情,以便人们可以帮助你。 – VK321
我认为我们其他人也很困惑。什么'return'语句应该取决于你的例程应该做什么。你能告诉我们吗? –