Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Outline

Java Pattern Programs

Pattern programs help you understand nested loops and logic building.

🔁 What are Nested Loops?

A nested loop means a loop inside another loop.

The outer loop controls the number of lines. The inner loop controls what is printed on each line.

Structure: for i in rows: for j in columns: print

Categories:

  • Basic patterns (stars, numbers, characters)
  • Intermediate patterns (aligned shapes)
  • Advanced patterns (butterfly, diamond, hollow shapes)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.