Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- public class hello {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- Console cons = System.console();
- // Console console = System.console();
- // String password = new String(console.readPassword());
- // System.out.println("password="+password);
- System.out.println("------歡迎使用-測試系統v0.1版------");
- System.out.println("(1)登入"+'\n'+"(2)註冊"+'\n'+"(3)忘記密碼");
- int number = sc.nextInt();
- switch (number) {
- case 1:
- System.out.print("帳號:");
- String username = sc.next();
- System.out.print("密碼:");
- String userpasswd = sc.next();
- break;
- case 2:
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment