public boolean compare(String userName,String passWord)
{
return this.userName==userName&&this.passWord==passWord;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int i = 0; i < 3; i++) {
System.out.println("请输入账号:");
String s = sc.nextLine();
System.out.println("请输入密码:");
String c = sc.nextLine();
HomeWork1 h = new HomeWork1();
if(s.isEmpty()||c.isEmpty())
{
System.out.println("账号或密码不能为空");
System.out.println("你还有"+(2-i)+"次机会");
continue;