package com.view;
import com.entity.User;
import java.util.Scanner;
public class UserView {
private Scanner sc = new Scanner(System.in) ;
public User loadUserInfo(){
User user = new User() ;
System.out.println("请输入用户名:");
user.setUserName( sc.next() );
System.out.println("请输入密码:");
user.setUserPwd( sc.next() );
return user ;
}
}