Question: Considering the class below. Write a method called major Display that returns the major in lower case class Student { String name; int id; String

Considering the class below. Write a method called major Display that returns the major in lower case class Student { String name; int id; String major; double gpa; int creditsTaken; String initial(). { String init = name.substring(0, 1); init name.toUpperCase() + return init; } int getId() { return id; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
