Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Student {
- private String lastName;
- private String firstName;
- private String secondName;
- private Integer studentId;
- private Date birthday;
- public Student(String Name, String FName, String SName, Integer Id, Date DR)
- {
- lastName = Name;
- firstName = FName;
- secondName = SName;
- studentId = Id;
- birthday = DR;
- }
- @Override
- public String toString()
- {
- return this.lastName+" "+this.firstName+", "+this.secondName+" "+this.studentId+" "+this.birthday;
- }
- }
- public class Solution {
- public static Student a1 = new Student("Enc", "Michail", "Vladimirovich", 8, new Date());
- public static void main(String[] args)
- {
- System.out.println(a1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement