我正在尝试调试以下代码,但我已经断线w= w+ inputString.substring(firsti,i)+"yay";
但调试器显示空白(找不到源)这是怎么回事?
public String translate (String inputString)
{
String w = "";
int firsti =0;
for(int i=0; i< inputString.length(); i++){
if(isVowel(inputString.charAt(i))){
firsti = i;
while (inputString.charAt(i) != ' ' || i< inputString.length()){
i++;
}
w= w+ inputString.substring(firsti,i)+"yay";
System.out.println(w);
}
}
String outputString = new String(inputString); // Copies input to output and prints it.
return outputString;
}