initial commit

This commit is contained in:
2025-12-09 15:40:47 +01:00
commit 91c731fef4
28 changed files with 690 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package cz.jzitnik.factory;
public class Contact {
public String firstName;
public String lastName;
public String birthdate;
public String email;
public String phone;
@Override
public String toString() {
return firstName + ";" + lastName + ";" + birthdate + ";" + email + ";" + phone;
}
public static Contact fromString(String s) {
String[] p = s.split(";");
Contact c = new Contact();
c.firstName = p[0];
c.lastName = p[1];
c.birthdate = p[2];
c.email = p[3];
c.phone = p[4];
return c;
}
}