Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Student {
- private String firstName;
- private String lastName;
- private int age;
- public Student (String last, String first, int studentage) {
- lastName = last;
- firstName = first;
- age = studentage;
- }
- public String getLast() {
- return lastName;
- }
- public String getFirst() {
- return firstName;
- }
- public int getAge() {
- return age;
- }
- }
- public class StudentBody {
- public static void main() {
- Student[] students = new Student [10];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement