java实现用户登录功能代码

可以参考这段代码:public class Login { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("请输入用户名:"); String username = sc.nextLine(); System.out.println("请输入密码:"); String password = sc.nextLine(); if (username.equals("admin") && p

猜你喜欢

转载自blog.csdn.net/weixin_35757531/article/details/129536744