Define a class Student, which holds the following information about students:
-
first name
-
last name
-
age
-
hometown
Read list of students until you receive "end" command. After that, you will receive a city name. Print only students which are from the given city, in the following format: "{firstName} {lastName} is {age} years old.".
Examples:
Hints:
-
Define a class Student with the following fields: firstName, lastName, age and city.
-
Read a list of students.
-
Read a city name and print only students which are from the given city.