我正在制作二十一点游戏,但由于某种原因无法使 else 语句起作用。你能纠正这个并正确解释吗?
{
if (user.equalsIgnoreCase("next card"))
b = ran.nextInt(1 + 9) + 1;
y = x + c + b;
System.out.println("You received " + b + " And together your cards equal " + y + " .");
} else {
System.out.println("You decided to stay.");
}