Skip to content

Chandansaha2005/JAVA-CODES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAVA-CODES OF CKS

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.


📘 What’s Covered So Far

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 StringBuilder and StringBuffer for mutable strings
  • Threading

    • Introduction to Threads
    • Creating threads using Thread class and Runnable interface
    • 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()
  • 🔍 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.


💡 Who is this for?

  • 🧑‍💻 Anyone starting to learn Java from scratch
  • 👨‍🎓 Students who want practice problems and examples
  • 🚀 Developers who want to brush up on Java fundamentals

📅 My Goal

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!


📬 How to Use

  1. Browse through the folders based on topics.
  2. Open the .java files and read the comments for explanation.
  3. Try running the code in your IDE or terminal (VS Code, IntelliJ, BlueJ, etc.).
  4. Practice by modifying or improving the code!

🤝 How to Contribute

  • 🍴 Fork this repo
  • 👯 Add your Java programs or improve existing ones
  • 🔁 Submit a Pull Request

📣 Stay Connected


Thanks for visiting!
Happy Coding 🧑‍💻✨
Chandan Saha

About

My daily Java practice – from basics to advanced.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages