Welcome to my Java learning repository!
This repo is a collection of Java programs that I’m writing as part of my daily learning and coding practice. My goal is to track my progress, improve step by step, and also help others who are starting their Java journey from the basics.
Right now, I’ve completed topics up to:
-
✅ Basic Java Syntax
- Structure of a Java program
- main method
- Comments, indentation
- Printing with System.out.println()
- Data types and variables
-
🧮 Operators & Expressions
- Arithmetic operators (+, -, *, /, %)
- Relational operators (==, !=, >, <, etc.)
- Logical operators (&&, ||, !)
- Assignment operators (=, +=, etc.)
- Unary operators (+, -, !)
- Bitwise operators (&, |, ^, ~, <<, >>)
-
⚖ Conditionals
- if statement
- if-else
- else-if ladder
- switch-case
-
🔄 Loops & Nested Loops
- for loop
- while loop
- do-while loop
- Loop control: break, continue
- Nested loops
-
📦 Packages
- Creating packages
- import statements
- Access modifiers (public, private, protected, default)
-
🧩 Methods
- Method definition and calling
- Parameters and arguments
- Return types
- Method overloading
- Scope of variables (local, global, static)
-
🧱 Class & Object
- Creating classes and objects
- Constructor basics
- Parent-child class (Inheritance)
-
📚 Arrays
- Single-Dimensional Arrays
- Multi-Dimensional Arrays (2D Arrays, nested loops for access)
-
📄 Strings
- Declaring and initializing strings
- String methods:
length(),charAt(),substring(),toUpperCase(),toLowerCase() - String comparison:
equals(),equalsIgnoreCase(),compareTo() - String concatenation and immutability
- Using
StringBuilderandStringBufferfor mutable strings
-
⏳ Threading
- Introduction to Threads
- Creating threads using
Threadclass andRunnableinterface - Thread lifecycle and states
- Thread methods:
start(),sleep(),join(),isAlive() - Synchronization basics
-
📋 ArrayList
- Introduction to
ArrayList(dynamic arrays) - Adding, removing, and accessing elements
- Iterating with for-each and Iterator
- Useful methods:
size(),contains(),indexOf(),clear()
- Introduction to
-
🔍 Searching & Sorting
- Linear Search
- Binary Search
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
To Be Continued....
🔗CLICK HERE TO ACCESS ALL CODES
📌 For each topic, I’m adding multiple practice codes so that others can understand better and practice too.
More topics like functions, file handling, and full OOP will be added as I learn them.
- 🧑💻 Anyone starting to learn Java from scratch
- 👨🎓 Students who want practice problems and examples
- 🚀 Developers who want to brush up on Java fundamentals
I will upload Java code daily or weekly to track my journey and growth.
If you want to follow along or learn with me, feel free to fork, star ⭐ this repo, or open issues if you have questions!
- Browse through the folders based on topics.
- Open the
.javafiles and read the comments for explanation. - Try running the code in your IDE or terminal (VS Code, IntelliJ, BlueJ, etc.).
- Practice by modifying or improving the code!
- 🍴 Fork this repo
- 👯 Add your Java programs or improve existing ones
- 🔁 Submit a Pull Request
Thanks for visiting!
Happy Coding 🧑💻✨
— Chandan Saha