Skip to content

GirishSonune/Java-Loop-Pattern

Repository files navigation

Pattern Programs in Java

This repository contains various pattern programs implemented in Java. Each program demonstrates a different way of generating common patterns, such as pyramids, triangles, and other shapes, using nested loops.

Table of Contents

Overview

Pattern programs are an essential part of learning Java programming, helping to build a strong foundation in loops and logic-building. This repository includes a variety of patterns, from simple shapes like pyramids to complex designs like diamonds and houses.

Available Patterns

Below is the list of pattern programs included in this repository:

  1. Alphabetic Pyramid: AlphabeticPyramid.java
  2. Butterfly Pattern: ButterflyPattern.java
  3. Diamond Pattern: DiamondPattern.java
  4. Floyd's Triangle: FloydTrianglePattern.java
  5. Half Pyramid: HalfPyramidPattern.java
  6. Hollow Rectangle: HollowRectanglePattern.java
  7. House Pattern: HousePattern.java
  8. Inverted Pyramid: InvertedPyramidPattern.java
  9. Inverted Rotated Half Pyramid: InvertedRotatedHalfPyramid.java
  10. Normal Pyramid: NormalPyramid.java
  11. Rhombus Pattern: RhombusPattern.java
  12. Star Pattern: StarPattern.java
  13. Triangle Pattern: TrianglePattern01.java

How to Use

  1. Clone the repository:

    git clone https://github.com/GirishSonune/Java-Loop-Pattern.git
    cd Java-Loop-Pattern
  2. Open any .java file in your preferred IDE or text editor.

  3. Compile and run the program:

    javac FileName.java
    java FileName

    Replace FileName with the name of the Java file you want to execute.

  4. Follow the prompts (if any) to see the pattern output.

Prerequisites

  • Java Development Kit (JDK) installed on your system.
  • Basic knowledge of Java programming.

Contributing

Contributions are welcome! If you have a new pattern or improvement, please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-name.
  3. Commit your changes: git commit -m 'Add feature-name'.
  4. Push to the branch: git push origin feature-name.
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.


Happy coding and learning Java patterns!

About

This Repository is help you to Understand the How Loop is Work.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages