This repository contains a collection of Java pattern printing programs designed to help beginners practice loops, conditionals, and logic building in Java.
Folder Name: pattern
Contains: 12 Java programs focused on different types of patterns.
- boolean_pattern.java
- floyds_pattern_print.java
- full_pyramid.java
- hollow_rectangle.java
- invert_half_pyramid.java
- inverted_down_half_pyramid.java
- inverted_pyramid.java
- num_pyramid.java
- palindrom_triangle_pattern.java
- pattern_pyramid.java
- rectangle_pattern.java
- solid_rhombus.java
Language: Java
IDE: Visual Studio Code / IntelliJ IDEA / Eclipse / Any Java IDE
JDK Version: 8 or higher
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
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
This project is licensed under the MIT License — see the LICENSE file for details.
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! ☕