Skip to content

Instantly share code, notes, and snippets.

@trancuong3
Created May 10, 2024 14:05
Show Gist options
  • Save trancuong3/8a6f4fe3097837f4e6aca19dfec45679 to your computer and use it in GitHub Desktop.
Save trancuong3/8a6f4fe3097837f4e6aca19dfec45679 to your computer and use it in GitHub Desktop.
public class main {
public static void main(String[] args) {
Person s1=new Person(1,"nam","nam@gmail.com","d");
Person s2=new Person(2,"lan","lan@gmail.com","e");
Person s3=new Person(3,"ngoc","ngoc@gmail.com","r");
Person s4=new Person(4,"vinh","vinh@gmail.com","t");
Person s5=new Person(5,"hang","hang@gmail.com","y");
System.out.println(s1.getId()+"Person 1" + s1.getName() +"email"+s1. getEmail()+ ", Role" + s1.getRole());
System.out.println(s2.getId()+"Person 2" + s2.getName() + ", Role" + s2.getRole());
System.out.println(s3.getId()+"Person 3" + s3.getName() + ", Role" + s3.getRole());
System.out.println(s4.getId()+"Person 4" + s4.getName() + ", Role" + s4.getRole());
System.out.println(s5.getId()+"Person 5" + s5.getName() + ", Role" + s5.getRole());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment