```java
import java.util.Scanner;// 导包
public class Login{ //用户登录
public static void main(String[]args){
Scanner input = new Scanner(System.in);//创建Scanner对象
System.out.print("please input users name:"); //屏幕显示
String useName=input.next();//输入用户名
System.out.print("please enter the password:");//输入密码
int pwd=input.nextInt();//输入密码
//双分支结构 if-else
if("wangwu".equals(userName)&&pwd==123456)
{//判断用户名和密码
System.out.println("successful");
}else{
System.out.println("I am sorry, you could not get in");
}
}
}
```java
Login.java:10: error: cannot find symbol
if("wangwu".equals(userName)&&pwd==123456)
^
symbol: variable userName
location: class Login
1 error