Tournament with File Handling
Challenge yourself to construct the main class using file handling.
Our basketball tournament was previously built using hard-coded data for teams, players, and games. It’s time to upgrade our system by utilizing CSV files to manage data, enhancing scalability and maintainability.
Challenge
This lesson aims to construct a complete tournament using file handling, including teams, players, games, and statistics. The Main
class should create the Tournament
class, populate it with teams and players, and then add games with their corresponding stats while reading data from a CSV file.
Your task here is to:
Modify the
Main
class to read and process data from this single CSV ...