A console-based Pattern Printing System built using Java. The project allows users to explore and print different star, number, alphabet, and advanced patterns by selecting a category and pattern from the menu. It also includes input validation, selection previews, and a project report that tracks the patterns printed during the session.
- 4 Pattern Categories
- 8 Star Patterns
- 6 Number Patterns
- 5 Alphabet Patterns
- 5 Advanced Patterns
- Input validation for menu choices
- Input validation for rows and columns
- Pattern selection preview
- Ability to print multiple patterns in one session
- Project report showing the total number of patterns printed and category-wise counts
- Right Triangle
- Left Triangle
- Pyramid
- Inverted Triangle
- Diamond
- Hollow Square
- Hollow Rectangle
- Hollow Right Triangle
- Number Triangle
- Reverse Number Triangle
- Repeating Number Triangle
- Floyd's Triangle
- Number Pyramid
- Palindrome Number Pyramid
- Alphabet Triangle
- Reverse Alphabet Triangle
- Repeating Alphabet Triangle
- Continuous Alphabet Triangle
- Alphabet Pyramid
- Butterfly Pattern
- Concentric Number Square Pattern
- Consecutive Number Pyramid
- Ascending Number Pyramid
- Binary Triangle Pattern
- Methods
- Method Overloading
- Loops
- Nested loops
- Conditional statements
- Switch expressions
- Scanner for user input
- Input validation
- Breaking a larger program into smaller methods
- The program displays the pattern categories.
- The user selects a category.
- The program displays the patterns available in that category.
- The user selects a pattern.
- The program asks for the required number of rows or columns.
- A selection preview is displayed.
- The selected pattern is printed in the console.
- The user can choose to print another pattern.
- At the end, a project report displays the total number of patterns printed along with category-wise counts.
- Clone this repository.
- Open the project in IntelliJ IDEA or any Java-compatible IDE.
- Make sure Java is installed and configured.
- Run
PatternPrintingSystem.java. - Follow the instructions displayed in the console.
===================================
Welcome to Pattern Printing System
===================================
Choose Pattern Category:
1. Star Patterns
2. Number Patterns
3. Alphabet Patterns
4. Advanced Patterns
Enter your choice: 1
-------Star Patterns-------
1. Right Triangle
2. Left Triangle
3. Pyramid
4. Inverted Triangle
5. Diamond
6. Hollow Square
7. Hollow Rectangle
8. Hollow Right Triangle
Enter your choice: 3
Enter number of rows: 5
--------SELECTION PREVIEW--------
Category: Star Patterns
Pattern: Pyramid
Rows: 5
---------------------------------
*
***
*****
*******
*********
Do you want to print another pattern?
1. Yes
2. No
Enter your choice: 2
-------------------------------------
PROJECT REPORT
-------------------------------------
Total Patterns Printed: 1
Star Patterns: 1
Number Patterns: 0
Alphabet Patterns: 0
Advanced Patterns: 0
Thank You For Using
Pattern Printing System!
-------------------------------------