https://github.com/caaseey/basketball
A Java program to manage and analyze basketball player statistics through a menu-driven interface. Perform actions like viewing player details, calculating total points, updating scores, and identifying the top scorer. Demonstrates OOP concepts, ArrayLists, and dynamic data handling.
https://github.com/caaseey/basketball
arraylist basketball interactive-menu java oop player-statistics
Last synced: about 1 month ago
JSON representation
A Java program to manage and analyze basketball player statistics through a menu-driven interface. Perform actions like viewing player details, calculating total points, updating scores, and identifying the top scorer. Demonstrates OOP concepts, ArrayLists, and dynamic data handling.
- Host: GitHub
- URL: https://github.com/caaseey/basketball
- Owner: caaseey
- Created: 2025-01-16T11:52:11.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-01-16T11:58:53.000Z (9 months ago)
- Last Synced: 2025-06-02T12:57:49.832Z (4 months ago)
- Topics: arraylist, basketball, interactive-menu, java, oop, player-statistics
- Language: Java
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basketball Player Statistics Management
## Overview
This Java application allows users to manage and analyze basketball player statistics through a menu-driven interface. The program demonstrates key object-oriented programming concepts and provides a dynamic way to interact with player data.## Features
- **View Player Details**: Retrieve information such as name, age, jersey number, and total points scored.
- **Calculate Total Points**: Display the total points scored by a player over the last 5 games.
- **Update Player Scores**: Add or update points scored by a player in specific games.
- **Find Top Scorer**: Identify the player with the highest total points.## Usage
1. Clone this repository:
```bash
git clone https://github.com/caaseey/Basketball
```
2. Open the project in an IDE (e.g., NetBeans, IntelliJ IDEA).
3. Run the `AppLiga` class to start the program.
4. Follow the on-screen menu to interact with player data.## Menu Options
- **[1] Consult Player**: Enter a player name to view their details.
- **[2] Total Points**: Enter a player name to see their total points scored.
- **[3] Add Player Points**: Update the points for a specific game by entering the game position (0-4).
- **[4] Top Scorer**: Display the player with the highest total points.
- **[0] Exit**: Quit the program.## Code Structure
- **`AppLiga`**: Main class containing the menu and user interaction logic.
- **`Jugador`**: Player class that encapsulates attributes like name, age, jersey number, and scores. Includes methods for calculating total points and updating scores.## Example Players
The program includes the following predefined players:
- LeBron James
- Stephen Curry
- Giannis AntetokounmpoYou can add more players by editing the `AppLiga` class.
## Requirements
- **Java Development Kit (JDK)** 8 or higher.## Example Output
```
[1] Consult Player
[2] Total Points
[3] Add Player Points
[4] Top Scorer
[0] Exit
Option: 1
Enter player name: Stephen Curry
Player: Stephen Curry, Age: 35, Jersey: 30, Total Points: 215
```## Author
- **Casey Cleto Belen**## License
This project is licensed under the MIT License.