Project Description • Features • Tech Stack • Installation • Usage
BloodData is a Java console application created as a university lab exercise.
It simulates storing and displaying a patient’s blood type and Rhesus factor, practicing concepts such as constructors, method overloading, input validation, and object instantiation.
- Default blood type (
O+) if no input is provided - Overloaded constructor to accept user-defined blood type and Rh factor
- Input validation for valid blood groups (
O, A, B, AB) and Rh factor (+or-) - Console-based interface with feedback for invalid inputs
- Language: Java
- IDE: IntelliJ IDEA (or any Java IDE)
git clone https://github.com/nca-gabriel/BloodData.git
cd BloodDataCompile & Run via CLI: cd src java Main.java java Main
Run via IntelliJ IDEA:
Open the project in IntelliJ IDEA
Right-click Main.java → Run 'Main.main()'
