A simple java program that contains triangle patterns, written in java.
- Java JDK
- Set the paths (watch a YouTube video)
git clone https://github.com/Debaloy/java-cli-triangle-patterns.gitOpen the folder where you cloned the repo and type the following:
javac Triangle.javaGet started by typing,
java Triangle --helpThis will show all the available combination of commands.
java Triangle 4 10 @4 means it will print a mirrored upside down right triangle.
10 means the triangle will be 10 lines long.
@ means the triangle will be made of this character. [ Default is * ].
Like so:
