Created
November 7, 2014 12:26
-
-
Save yassaa/1983058aac9cbdb0c198 to your computer and use it in GitHub Desktop.
User
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class Userinformation { | |
| private String Name; | |
| private String Email; | |
| private long Phonenumber; | |
| // if the number is not 8 characters long, the system will give an error message | |
| //User information | |
| public Userinformation(String Name, String Email, long Phonenumber){ | |
| this.Name = Name; | |
| this.Email = Email; | |
| this.Phonenumber = Phonenumber; | |
| } | |
| public String getName(){ | |
| return Name; | |
| } | |
| public String getEmail(){ | |
| return Email; | |
| } | |
| public long getPhonenumber(){ | |
| return Phonenumber; | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment