Advertisement
ultravibez

HashMap User

Nov 4th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. package com.company;
  2.  
  3. public class User {
  4.     private String username;
  5.     private String password;
  6.  
  7.     public User(String username, String password) {
  8.         this.username = username;
  9.         this.password = password;
  10.     }
  11.  
  12.     public String getUsername() {
  13.         return username;
  14.     }
  15.  
  16.     public String getPassword() {
  17.         return password;
  18.     }
  19.  
  20.     public void setPassword(String password) {
  21.         this.password = password;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement