Top 5 diamond patterns program in Java

Nikhiljain08 December 27, 2017
0 people like this post
Diamond-patterns

Today, we are going to implement different diamond patterns in Java. There are many diamond patterns available in different programming languages. But we have picked only few basic and popular patterns and implemented in Java programming language.

The following patterns we are going to implement:

  1. Left Triangle
  2. Inverted Left Triangle
  3. Triangle
  4. Right Triangle
  5. Complete Diamond

 

1. Left Triangle

Output:

 

 

 

 

2. Inverted Left Triangle

Output:

 

 

 

 

3. Triangle

Output:

 

 

 

 

4. Right Triangle

Output:

 

 

 

 

5. Diamond

Output:

 

 

 

 

 

Please do comment and let us know if we need any other pattern apart from the above mentioned.

Category: Java
  • 0
  • 250
Nikhiljain08