StarPatterns is a small Java/Maven project that prints a few basic ASCII star and shape patterns, including triangles and squares.
src/main/java/org/example/Main.java- menu-driven entry pointsrc/main/java/org/example/IncreasingTriangle.java- prints an increasing trianglesrc/main/java/org/example/DecreasingTriangle.java- prints a decreasing trianglesrc/main/java/org/example/RightSidedTriangle.java- prints a right-sided trianglesrc/main/java/org/example/FullTriangle.java- prints a full trianglesrc/main/java/org/example/Square.java- prints a square
- Java 25
- Maven
From the project root, run:
mvn clean packageThe current entry point is src/main/java/org/example/Main.java. It presents a menu and creates one of the pattern classes based on the selected option.
Note: Main.java currently defines a package-private void main() method instead of the standard public static void main(String[] args). Because of that, the project is easiest to run directly from your IDE for now. If you want to launch it from the command line, update the method signature to the standard Java entry point first.
The pattern classes write directly to standard output and print their shapes using repeated characters and spaces.