import java.io.*;
public class test03{
public static void main(String[] args)throws IOException
{
BufferedReader input= new BufferedReader
(new InputStreamReader(System.in));

String root,pass;
System.out.print("請輸入帳號: ");
root = input.readLine();
System.out.print("請輸入密碼: ");
pass = input.readLine();
if(root.equals("test") & pass.equals("123"))
{
System.out.print("正確:!);
System.out.print("歡迎登入");
}

else
{
System.out.print("錯誤!);
System.out.print("請勿非法登入 ");
}

}
}
arrow
arrow
    全站熱搜

    Neo Chao 發表在 痞客邦 留言(1) 人氣()