A collection of Java hands-on practices, experiments, and small console applications for building and strengthening core Java skills.
- Java syntax, variables, and data types
- User input with
Scanner - Conditional statements and grading logic
- Login and access-control checks
- Classes, objects, and basic object-oriented programming
- Collections such as
ArrayListandHashSet - Input validation and formatted console reports
- Student records, course scores, weighted averages, grades, and GPA calculations
- Maven project practice
.
├── Conditionals/ # Maven project for conditional-statement exercises
├── Data Structures Practicals/ # GPA and student-report practical
├── LOGIN ACCESS CHECK SYSTEM/ # Username and password validation exercise
├── Trials/ # Additional Java experiments and practice programs
├── .gitignore
├── LICENSE
└── README.md
Data Structures Practicals/GPAHub.java is a console-based student learning management system. It demonstrates:
- Student and course record modeling with nested classes
ArrayListandHashSetcollections- Duplicate student-ID detection
- Validation for names, IDs, course details, credit hours, and scores
- Weighted averages and GPA calculations
- Letter grades, pass/fail status, and honors classification
- Formatted student reports
Run it from the repository root with:
javac "Data Structures Practicals/GPAHub.java"
java -cp "Data Structures Practicals" GPAHubThe Conditionals directory contains a Maven project configured for the Conditionals main class.
cd Conditionals
mvn compile
mvn exec:javaThe project currently contains conditional-statement and switch-statement practice. Some examples are still being developed and may require completion before the entire project compiles successfully.
The login exercise can be compiled and run from the repository root with:
javac "LOGIN ACCESS CHECK SYSTEM/LoginAccessCheck.java"
java -cp "LOGIN ACCESS CHECK SYSTEM" LoginAccessCheckFor other standalone files, compile the file and run its class from the relevant directory:
javac FileName.java
java FileNameSome exercises use packages, so run them from the appropriate source root or use your IDE's run configuration.
- A JDK compatible with the version configured in
Conditionals/pom.xml - Apache Maven for the Maven project
- A code editor or IDE such as IntelliJ IDEA, Eclipse, or VS Code
Each exercise is intentionally small and focused. The repository will grow over time as new Java concepts, examples, data-structure exercises, and practical challenges are added.
This is primarily a personal learning repository, but suggestions and improvements are welcome. Feel free to open an issue or submit a pull request.
See the LICENSE file for details.