Skip to content

Debaloy/java-cli-triangle-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java CLI ASCII Triangle Patterns

A simple java program that contains triangle patterns, written in java.

Requirements for Installation

Java

  1. Java JDK
  2. Set the paths (watch a YouTube video)

Clone this repo

git clone https://github.com/Debaloy/java-cli-triangle-patterns.git

Usage

Compilation

Open the folder where you cloned the repo and type the following:

javac Triangle.java

Working

Get started by typing,

java Triangle --help

This will show all the available combination of commands.

Example:

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:
example

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages