Skip to content

A collection of 12 Java pattern programs showcasing the use of nested loops, conditionals, and logic-building techniques to create star, number, and shape-based patterns.

License

Notifications You must be signed in to change notification settings

red-khann/Java-Pattern_programs

Repository files navigation

☕ Java Pattern Programs

This repository contains a collection of Java pattern printing programs designed to help beginners practice loops, conditionals, and logic building in Java.

📁 Folder Structure

Folder Name: pattern
Contains: 12 Java programs focused on different types of patterns.

📜 List of Programs

  1. boolean_pattern.java
  2. floyds_pattern_print.java
  3. full_pyramid.java
  4. hollow_rectangle.java
  5. invert_half_pyramid.java
  6. inverted_down_half_pyramid.java
  7. inverted_pyramid.java
  8. num_pyramid.java
  9. palindrom_triangle_pattern.java
  10. pattern_pyramid.java
  11. rectangle_pattern.java
  12. solid_rhombus.java

🚀 Technologies Used

Language: Java
IDE: Visual Studio Code / IntelliJ IDEA / Eclipse / Any Java IDE
JDK Version: 8 or higher

⚙️ How to Run

Follow these steps to run any pattern program:

1️⃣ Clone this repository
git clone https://github.com/yourusername/pattern.git

2️⃣ Navigate to the folder
cd pattern

3️⃣ Compile the Java program
javac filename.java

4️⃣ Run the compiled program
java filename

🔹 Replace filename with the actual file name (without .java).

Example:
javac full_pyramid.java
java full_pyramid

🤝 Contribution

Contributions are welcome! If you’d like to add new pattern programs or improve existing ones, follow these steps:

  • Fork the repository
  • Add your changes
  • Commit and push
  • Create a pull request

🪪 License

This project is licensed under the MIT License — see the LICENSE file for details.

⭐ Support

If you like this project, please give it a star on GitHub — it helps others discover it and motivates further development! 🌟

Keep practicing and improving your pattern logic to strengthen your Java fundamentals! ☕

About

A collection of 12 Java pattern programs showcasing the use of nested loops, conditionals, and logic-building techniques to create star, number, and shape-based patterns.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages