gpt4 book ai didi

java - Java 代码中无法访问代码?

转载 作者:行者123 更新时间:2023-12-01 22:33:36 25 4
gpt4 key购买 nike

我的程序有一个错误,但我不知道如何修复它。该错误告诉我这一行是无法访问的代码。

continue;inputUrname = JOptionPane.showInputDialog("Enter User Name");

这是为什么?

switch ((str1 = loginChoice).hashCode())
{
case 73596745:
if (str1.equals("Login")) {
break;
}
break;
case 278621961:
if (!str1.equals("Create Account"))
{
continue;inputUrname = JOptionPane.showInputDialog("Enter User Name");
if (inputUrname != null) {
inputPass = JOptionPane.showInputDialog("Enter Password");
}

最佳答案

Why is this?

因为Continue语句使得下面的赋值无法实现。

继续告诉Java无条件结束当前循环迭代....

我怀疑 continue; 是意外插入,尽管这也有可能是反编译代码并且反编译器犯了错误。 (这并不罕见,这是您必须处理的事情之一。)

关于java - Java 代码中无法访问代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27209643/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com