This repository contains a collection of Java practice exercises that I have written while learning the Java programming language. The exercises are well-organized, categorized, and properly named for ease of reference and understanding.
The project is organized into various files based on different topics and concepts in Java. Each file contains Java code that focus on specific programming concepts or techniques.
- Basic Syntax: Programs that focus on the basic syntax and structure of Java.
- Object-Oriented Programming (OOP): Exercises related to classes, objects, inheritance, polymorphism, and encapsulation.
- Data Structures: Implementations of common data structures like arrays, lists, stacks, and queues.
- Advanced Topics: Topics like file handling, exceptions, multithreading, and more.
To run any of the code in this repository:
-
Clone the repository using the following command:
git clone https://github.com/Ali-Barzegari-d/Learning-Java-Archive.git
-
Navigate to the desired directory containing the exercise you want to run.
-
Compile the Java file using javac and run it using the java command:
javac FileName.java java FileName
Feel free to fork the repository, add new exercises, or improve the existing code. Pull requests are welcome!