@@ -0,0 +1,1509 @@
+package com.twu.biblioteca.user;%0A%0Aimport com.twu.biblioteca.com.twu.biblioteca.exceptions.InvalidLibraryNumberFormatException;%0A%0A/**%0A * Created by watsonarw on 25/04/15.%0A */%0Apublic class User %7B%0A    private String libraryNumber;%0A    private String name = %22%22;%0A    private String emailAddress = %22%22;%0A    private String phoneNumber = %22%22;%0A    private String password = %22%22;%0A%0A    public User(String libraryNumber, String name, String emailAddress, String phoneNumber, String password) %7B%0A        this.libraryNumber = libraryNumber;%0A        validateLibraryNumber();%0A        this.name = name;%0A        this.emailAddress = emailAddress;%0A        this.phoneNumber = phoneNumber;%0A        this.password = password;%0A    %7D%0A%0A    public User(String libraryNumber, String password) %7B%0A        this(libraryNumber, %22%22, %22%22, %22%22, password);%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return libraryNumber;%0A    %7D%0A%0A    public String getLibraryNumber() %7B return this.libraryNumber; %7D%0A%0A    private void validateLibraryNumber() %7B%0A        if (!libraryNumber.matches(%22%5E%5B%5C%5Cd%5D%7B3%7D-%5B%5C%5Cd%5D%7B4%7D$%22)) %7B%0A            throw new InvalidLibraryNumberFormatException(libraryNumber);%0A        %7D%0A    %7D%0A%0A    public String getDetails() %7B%0A        return  %22User details for %22 + libraryNumber + %22%5Cn%22 +%0A                %22Name:  %22 + name + %22%5Cn%22 +%0A                %22Email: %22 + emailAddress + %22%5Cn%22 +%0A                %22Phone: %22 + phoneNumber + %22%5Cn%22;%0A    %7D%0A%0A    public boolean validate(String password) %7B%0A        return this.password.equals(password);%0A    %7D%0A%7D;%0A

Implement User Class