Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by Anatoliy on 09.07.2016.
- * Task 4.2.4
- */
- public class Student {
- private String fName, lName, stuStatus;
- private int studentId;
- public Student() {
- }
- public Student(String fN, String lN, int sId, String stuSt) {
- fName = fN;
- lName = lN;
- studentId = sId;
- stuStatus = stuSt;
- }
- public void printStudent() {
- System.out.println(this.fName + " " + this.lName + " " + this.studentId + " " this.stuStatus);
- }
- public static void main(String[] args) {
- Student Vasyan = new Student("Vasya", "Petrov", 47, "Pocan");
- Vasyan.printStudent();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement