我的程序有一个错误,但我不知道如何修复它。该错误告诉我这一行是无法访问的代码。
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/