Skip to content

Adhouma/Generics-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generics-challenge

/**
 * Create a generic class to implement a league table for a sport.
 * The class should allow teams to be added to the list, and store a list of teams that belong to the league.
 * 
 * Your class should have a method to print out the teams in order,
 * with the team at the top of the league printed first.
 * 
 * Only teams of the same sport should be added to any particular instance of the league class 
 * (the program should fail to compile) if an attempt is made to add an incompatible team.
 */

Releases

No releases published

Packages

No packages published

Languages