SkillAgentSearch skills...

JavaBasicPrograms

Core Java Basic Program

Install / Use

/learn @dimpeshmalviya/JavaBasicPrograms

README

<h1 align="center">🚀 JavaBasicPrograms 🧩</h1> <p align="center"> <b>A curated collection of fundamental Java programs for beginners, students, and interview preparation.</b> </p> <p align="center"> <img src="https://img.shields.io/badge/Language-Java-orange?style=for-the-badge&logo=java"> <img src="https://img.shields.io/github/stars/dimpeshmalviya/JavaBasicPrograms?style=for-the-badge&color=yellow"> <img src="https://img.shields.io/github/forks/dimpeshmalviya/JavaBasicPrograms?style=for-the-badge&color=blue"> <img src="https://img.shields.io/github/license/dimpeshmalviya/JavaBasicPrograms?style=for-the-badge&color=green"> </p>

📖 About

This repository contains basic and intermediate Java programs that cover a wide range of concepts — from simple logic building to algorithms.
It’s designed to help you:

  • 🧠 Understand Java fundamentals through hands-on examples
  • 💻 Practice algorithmic and logical problems
  • 🎯 Prepare for coding interviews and tests
  • ⚙️ Explore common Java programming patterns

✨ What’s Inside

You’ll find implementations of:

  • 🔢 Mathematical Problems: Factorial, Fibonacci, Prime numbers, Armstrong, etc.
  • 🔍 Sorting & Searching: Bubble Sort, Selection Sort, Binary Search, etc.
  • 🔠 String Manipulation: Palindrome, Anagram, Character Occurrence, etc.
  • 🧮 Algorithmic Challenges: Max Subarray Sum, Sieve of Eratosthenes, etc.
  • 🧵 Concurrency Examples: Synchronization, Threads, Runnable interfaces
  • 🧰 Utility Programs: Password Strength Checker, Pattern Printing, etc.

Each program is self-contained, well-commented, and written with readability in mind.


⚙️ Getting Started

🧩 Prerequisites

Before you begin, ensure you have the following installed:

  • Java Development Kit (JDK) – Version 8 or higher
  • Any IDE – IntelliJ IDEA, Eclipse, VS Code, or even Notepad++
  • (Optional) Git for version control

▶️ How to Run

Clone the repository and execute any Java file you want to try:

# Clone this repository
git clone https://github.com/dimpeshmalviya/JavaBasicPrograms.git

# Move into the project directory
cd JavaBasicPrograms

# Compile a specific Java file
javac FileName.java

# Run the compiled class
java FileName

📝 Replace FileName with the actual program file name (without .java).

Alternatively, you can open the project in an IDE and run files directly.


🤝 Contributing

Contributions are always welcome!

If you’d like to improve an existing program, fix bugs, or add new ones, follow these steps:

  1. Fork this repo

  2. Create a branch for your feature

    git checkout -b feature/YourFeatureName
    
  3. Make your changes and commit

    git commit -m "Add factorial using recursion"
    
  4. Push the branch

    git push origin feature/YourFeatureName
    
  5. Open a Pull Request

🧭 Contribution Guidelines

  • Keep code simple, readable, and well-commented
  • Use descriptive names for variables and methods
  • Add example input/output if relevant
  • Update this README if you add a new major category

📜 License

This project is licensed under the MIT License. You are free to use, modify, and distribute this project with attribution.

<p align="center"> <img src="https://img.shields.io/badge/License-MIT-green?style=flat-square"> </p>

💬 Contact & Acknowledgments

👤 Author: Dimpesh Malviya 📂 Repository: JavaBasicPrograms

💡 Have suggestions or improvements? Feel free to open an issue or PR!


Our Contributors

<img src="https://contributors-img.web.app/image?repo=dimpeshmalviya/JavaBasicPrograms"/>

Our Forkers

<img src="https://reporoster.com/forks/dark/dimpeshmalviya/JavaBasicPrograms"/>

Our Stargazer

<img src="https://reporoster.com/stars/dark/dimpeshmalviya/JavaBasicPrograms"/> <p align="center"> <b>“The only way to learn a new programming language is by writing programs in it.”</b><br> — Dennis Ritchie </p> <p align="center"> 🌟 If you find this helpful, don’t forget to star the repository! </p>

Related Skills

View on GitHub
GitHub Stars17
CategoryDevelopment
Updated4mo ago
Forks64

Languages

Java

Security Score

77/100

Audited on Nov 3, 2025

No findings