Java implements user login function code

You can refer to this code: public class Login { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please enter the username: "); String username = sc.nextLine(); System.out.println("Please enter the password: "); String password = sc.nextLine(); if (username.equals("admin") && p

Guess you like

Origin blog.csdn.net/weixin_35757531/article/details/129536744