Welcome to Java Explore! This repository is a collection of my personal Java projects and coding exercises. It showcases my journey in learning and experimenting with Java.
This repository serves as a sandbox for exploring various Java concepts, including object-oriented programming, data structures, algorithms, and more. Each directory contains a different project or exercise with its own set of files and instructions.
To compile and run Java code, follow these steps:
-
Ensure JDK is Installed: Download and install the Java Development Kit (JDK) from Oracle's official site.
-
Check Installation: Verify your installation by running the following command in your terminal:
java -version
-
Compile Java Code: Navigate to the directory containing your
.java
files and run:javac YourFileName.java
This command compiles your Java file and generates a
YourFileName.class
file. -
Run Java Code: Execute the compiled class file using:
java YourFileName
cd Project1
javac Main.java
java Main