Welcome to Java DSA, a hands-on learning repository where I practice and explore core Java programming concepts, basic data structures, and algorithm exercises. This project focuses on building a strong foundation in Java before moving on to advanced DSA topics.
This repository is created for beginners who want to:
- Learn Java programming fundamentals
- Practice logic building with loops, arrays, and methods
- Understand 1D and 2D array operations
- Prepare for data structures and algorithms interviews
📦 Java-dsa
├── 📂 01-Loops-variables-Simple
│ └── Basic Java programs covering loops, variables, and conditionals
├── 📂 02-Patterns
│ └── Pattern printing problems
├── 📂 03-Functions & Methods
│ └── Programs demonstrating functions and methods
├── 📂 04-Arrays
│ └── 1D and 2D array programs
├── 📂 05-Strings
│ └── String manipulation and related problems
├── 📂 06-Bit Manipulation
│ └── Bitwise operation problems
├── 📂 07-Sorting
│ └── Sorting algorithms and examples
├── 📂 08-Recurstion
│ └── Recurstion problems
└── 📜 README.md
- Java basics (variables, conditionals, loops)
- Pattern printing
- Functions and methods
- Arrays
- 1D Arrays
- 2D Arrays (searching, row sum, transpose, etc.)
- String manipulation
- Bit manipulation techniques
- Sorting algorithms
- Core problem-solving concepts in Java
Make sure you have the following installed:
- Java Development Kit (JDK 8 or higher)
- Any Java IDE (IntelliJ IDEA, Eclipse, VS Code)
-
Clone the repository:
git clone https://github.com/ashtonds/Java-dsa.git
-
Navigate to the project directory: cd Java-dsa
-
Open the project in your preferred IDE.
-
Compile and run any .java file.
- This repository is mainly for:
- Daily Java practice
- Improving logical thinking
- Learning DSA step by step
- Interview preparation basics
Contributions are welcome! If you’d like to improve or extend this repository:
- Fork the repository
- Create a new branch
- Commit your changes
- Push to your branch
- Open a Pull Request
This project is open-source and available under the MIT License.