Skip to content

Instantly share code, notes, and snippets.

@yassaa
Created November 15, 2014 19:42
Show Gist options
  • Save yassaa/0d4173d46db7e024e810 to your computer and use it in GitHub Desktop.
Save yassaa/0d4173d46db7e024e810 to your computer and use it in GitHub Desktop.
user
package exam.project.sketch;
import java.util.Scanner;
public class User {
//Attributes
private String Name;
private String Email;
private long Phonenumber;
// if the number is not 8 characters long, the system will give an error message
//Constructor
public User(String Name, String Email, long Phonenumber){
this.Name = Name;
this.Email = Email;
this.Phonenumber = Phonenumber;
}
//Getters
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