class Demo1
{
public static void Os()
{
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
System.out.println("您输入的是"+i);
for (int j = 0;j < i ; j += 2 )
{
System.out.print(j + " ");
}
}
public static void printStar()
{
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
System.out.println("您输入的是"+i);
for (int x = 1;x <= i ; x++ )
{
for (int y = 1 ; y <= x ; y++ )
{
System.out.print("*");
}
System.out.println();
}
}
public static void jiuJiu()
{
for (int x = 1;x <= 9 ; x++ )
{
for (int y = 1 ; y <= x ; y++ )
{
System.out.print(y+"*"+x+"="+x*y+'\t');
}
System.out.println();
}
}
public static void sXH()
{
System.out.println("水仙花数!");
for (int i = 101; i<1000 ; i++ )
{
int b = i / 100;
int s = i % 100 / 10;
int g = i % 100 % 10;
//System.out.println("b="+b +"s="+ s +"g="+g);
if (b*b*b+s*s*s+g*g*g == i)
{
System.out.println(i + " ");
}
}
}
public static void main(String[] args)
{
boolean flag = true;
int count = 1;
while (flag)
{
System.out.println("请输入用户名:");
Scanner sc = new Scanner(System.in);
String name=sc.nextLine();
System.out.println("请输入密码:");
// Scanner sc = new Scanner(System.in);
String pass=sc.nextLine();
String username = "liuzhen";
String password = "123456";
if (username.equals(name)&& password.equals(pass))
{
flag = false;
System.out.println("欢迎来到黑马游戏大厅");
}
else
{
if (count == 5)
{
System.out.println("您的输入次数已经使用完毕!!将退出程序!!");
flag = false;
}
else{