This is a Java Swing application that allows users to upload a CSV file containing hero data and find the hero with the lowest movement speed and its corresponding HP. The program also displays images and plays an audio file associated with the selected hero.
- Upload a CSV file containing hero data.
- Identify the hero with the lowest movement speed.
- Display hero images and animations.
- Play an audio file associated with the hero.
Ensure you have Java installed on your system. You can download and install the latest JDK from: https://www.oracle.com/java/technologies/javase-downloads.html
The program uses Java Swing for the GUI and Java Sound API for audio playback. No additional external libraries are needed.
- Clone this repository:
git clone https://github.com/your-username/hero-movement-speed.git
- Navigate to the project directory:
cd hero-movement-speed - Compile the Java program:
javac HeroMovementSpeed.java
- Run the program:
java HeroMovementSpeed
Ensure that the uploaded CSV file follows this format:
hero_name,movement_spd,hp
Hero1,300,2500
Hero2,280,2400
Hero3,290,2600
- The first row must contain column headers:
hero_name,movement_spd, andhp. - Hero images and audio files should be named accordingly (e.g.,
hero1.jpg,hero1.gif,hero1.wav).
If you are using Visual Studio Code, install the following extension pack for Java:
- Extension Pack for Java (by Microsoft)
- Java Development Kit (JDK) support
- Debugger for Java
- Test Runner for Java
- Maven/Gradle support
You can install it directly from the VS Code marketplace: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
If you’d like to contribute, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries, feel free to reach out via GitHub issues or email: rycanano@gmail.com