Question: JAVA hw 1. define the displayStudent() that takes a student amd print his/her first name and last name 2. populate the studentArray with the following
JAVA hw
1. define the displayStudent() that takes a student amd print his/her first name and last name 2. populate the studentArray with the following student names:
James
Jane
Walker 3. Write a method displayAllStudents() that takes an array of students and print all their first name and last names, one row per student
here is my code: 

2 Implementation of a partial design of the Student class 3 public class Student f //attributes private String firstName new String private String lastName new String //methods public String getFirstName return first Name 10 public void set FirstName String newName) 12 firstName newName 13 public String getLastName return lastName 14 public void setLastName (String newLastName) 15 16 lastName new LastName 17
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
