-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuser.java
More file actions
27 lines (25 loc) · 716 Bytes
/
user.java
File metadata and controls
27 lines (25 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package user;
import java.util.*;
abstract public class user
{
private String username;
private String password;
public String accessUsername() {
return username;
}
public String accessPassword() {
return password;
}
public void inputUsername()
{
Scanner s1 = new Scanner(System.in);
this.username = s1.nextLine();
}
public void inputPassword(){
Scanner s2 = new Scanner(System.in);
this.password = s2.nextLine();
}
public void setUsername(String username) {
this.username=username;
}
}