---
title: "Discussion on \"Why loops? 🤔And loops in Java.\" | Hashnode"
description: "Discussion on \"Why loops? 🤔And loops in Java.\". Let's say I tell you to print something like this.\n*\nThen the simplest way to do that would be this\nSystem.out.println(\"*\");\n\nBut my friend if I want you to print something like this\n*\n*\nYou will definitely do this \nSystem.out.println(\"*\");\nSystem.ou..."
url: "https://hashnode.com/posts/why-loops-and-loops-in-java/636bab12eca4d02e69843525"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why loops? 🤔And loops in Java.](https://blog.iamniraj.com/why-loops-and-loops-in-java?utm_source=hashnode&utm_medium=feed)

Let's say I tell you to print something like this. \* Then the simplest way to do that would be this System.out.println("\*"); But my friend if I want you to print something like this \* \* You will definitely do this System.out.println("\*"); System.ou...

Nov 9, 2022 · 2 min read · blog.iamniraj.com  
Read the article

-   [#loops-in-java](https://hashnode.com/tag/loops-in-java)
-   [#java](https://hashnode.com/tag/java)
-   [#loops](https://hashnode.com/tag/loops)
-   [#for-loop](https://hashnode.com/tag/for-loop)

## Written by

[Niraj Kumar Gangale](https://hashnode.com/@iamnirajdotcom)

@iamnirajdotcom · India

  
[View profile](https://hashnode.com/@iamnirajdotcom)

Empowering communities via cloud and education.

it's Secret shhhh!!! 😶

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
