当我写出我的字符串时,它告诉我字符串文字没有正确关闭,但看起来它是..?然后如果我取出 /|\ 错误会向下移动 2 行到腿。我研究了一下,我似乎无法知道问题是什么......
public static void printMan(int badGuesses) {
String[] man = new String[];
man={"______",
"| |",
"| o",
"| |",
"| /|\", //it tells me that i need to insert missing quote
"| |",
"| / \"
};
int counter = 0;
while (counter < badGuesses) {
System.out.println(man[counter]);
}