Create a class Team to hold data about a college sports team.The Team class holds data fields for college name (such as HamptonCollege), sport (such as Soccer), and team name (such as Tigers).Include a constructor that takes parameters for each field, and getmethods that return the values of the fields. Also include a publicfinal static String named MOTTO and initialize it to Sportsmanship!Save the class in Team.java. Write an application named TestTeamwith the main method which declares and instantiates three Teamobjects with different values for their fields. Accept field valuesas a user input (utilizing JOptionPane) for each of team fields andassign those to proper instances of Team class (three sets of threeinput strings will be needed to fill all fields in each of threeTeam objects). Add a displayTeams method which displays all thedata, including the motto, for each instantiated Team objects. Whendoing so use JOptionPane again and format the output in orderlyfashion, one team data per a separate line. Save the class asTestTeam .java.