This repository contains a collection of Java projects created for learning and practice purposes. It covers a wide range of topics, from fundamental programming concepts to small, interactive games. Each project is self-contained in its own directory, making it easy to explore and understand individual topics.
The repository is organized into a series of directories, each representing a specific Java concept or a mini-project. Every project directory includes:
- A
src
folder containing the Java source code. - An
.iml
file, which is the project file for IntelliJ IDEA.
This structure allows you to open each directory as a separate project in your IDE.
The projects are divided into two main categories:
This section covers the fundamental concepts of Java programming. These projects are designed to help you understand the building blocks of the language.
2D_array
Method_overriding
abstract_attributes
aggregation
and_or_not_operators
anonymous_classes
arraylists
arrays_intro
break_continue_loops
composition
compound_calculator
constructor_object_oriented_programming
date_and_time
enhanced_switches
entering_user_input_into_an_array
enumerations
exceptions_try_and_catch
file_reading_using_java
file_writing_using_java
for_loop
generics
getters_setters
hashmap
if_else_INTRO
inheritance_attributes
interface_attributes
intro_datatypes_primitive_reference_data_types
intro_object_oriented_programming
java_countdown_timer_program
lesson_2_exercise
methods_reusable_codes
multithreading
nested_if_statements
nested_loop
object_oriented_programming
operators_all
overloaded_constructors
overloaded_methods
polymorphism_attributes
polymorphism_run
printf
search_in_array
shopping_cart_working_with_SCANNER
static_attributes
string_methods_string_lenght
substrings
super_attributes
temp_converter
ternary_operator
threading
timer_timertask
toString()_method_inherited_from_the_object_class
variable_arguments
variable_scope
weight_conversion_program
while_loops_Intro
working_with_MATH_classes
working_with_data_types_SCANNERintro
wrapped_classes
These projects are small, interactive applications that demonstrate how to apply Java concepts to build something fun and functional.
⭐Java_Dice_roller_game
⭐Java_hangman_game
⭐Java_quiz_game
⭐Java_slot_machine
⭐alarm_clock
⭐banking_program
⭐calculator_program
⭐madlibs_game, working with SCANNER
⭐music_player
⭐number_guessing_game
⭐rock_paper_scissor_game
⭐working_with_random_heads_and_tails_game
To run any of the projects in this repository, follow these steps:
- Clone the repository to your local machine.
- Open your preferred IDE (IntelliJ IDEA is recommended).
- Open a specific project by selecting the corresponding directory (e.g.,
2D_array
or⭐Java_Dice_roller_game
). - Locate the
main
method in the source files under thesrc
directory and run the program.
For supplementary information and code snippets, you can refer to the lesson_notes.md
file located in the root directory. This file contains useful tips and examples that may not be covered in the individual projects.