-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package ru.j4j.pojo; | ||
|
||
import java.util.Date; | ||
|
||
public class College { | ||
public static void main(String[] args) { | ||
Student student = new Student(); | ||
student.setSurname("Libovsky"); | ||
student.setGroup(1814); | ||
student.setStatStudy(new Date()); | ||
|
||
System.out.printf("Student: %s, Group: %s, Start of study: %s", student.getSurname(), | ||
student.getGroup(), student.getStatStudy()); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package ru.j4j.pojo; | ||
|
||
import java.util.Date; | ||
|
||
public class License { | ||
private String owner; | ||
private String model; | ||
private String code; | ||
private Date created; | ||
|
||
public String getOwner() { | ||
return owner; | ||
} | ||
|
||
public void setOwner(String owner) { | ||
this.owner = owner; | ||
} | ||
|
||
public String getModel() { | ||
return model; | ||
} | ||
|
||
public void setModel(String model) { | ||
this.model = model; | ||
} | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
|
||
public void setCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
public Date getCreated() { | ||
return created; | ||
} | ||
|
||
public void setCreated(Date created) { | ||
this.created = created; | ||
} | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package ru.j4j.pojo; | ||
|
||
import java.util.Date; | ||
|
||
public class Police { | ||
public static void main(String[] args) { | ||
License license = new License(); | ||
license.setOwner("Dmitrii Kapustin"); | ||
license.setModel("Cadillac"); | ||
license.setCode("x111xx"); | ||
license.setCreated(new Date()); | ||
|
||
System.out.println(license.getOwner() + " has a car - " + license.getModel() + " : " + license.getCode()); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package ru.j4j.pojo; | ||
|
||
import java.util.Date; | ||
|
||
public class Student { | ||
private String surname; | ||
private int group; | ||
private Date statStudy; | ||
|
||
public String getSurname() { | ||
return surname; | ||
} | ||
|
||
public void setSurname(String surname) { | ||
this.surname = surname; | ||
} | ||
|
||
public int getGroup() { | ||
return group; | ||
} | ||
|
||
public void setGroup(int group) { | ||
this.group = group; | ||
} | ||
|
||
public Date getStatStudy() { | ||
return statStudy; | ||
} | ||
|
||
public void setStatStudy(Date statStudy) { | ||
this.statStudy = statStudy; | ||
} | ||
} |