---
title: "Discussion on \"Print a hollow rectangle star with the help of nested loop\" | Hashnode"
description: "Discussion on \"Print a hollow rectangle star with the help of nested loop\". import java.util.Scanner;\n\n/**\n * Link4\n */\npublic class Link {\n\n    public static void main(String[] args) {\n        Scanner sc =  new Scanner(System.in);\n        System.out.println(\"enter a number\");\n        int n = sc.nextInt();\n        System.out..."
url: "https://hashnode.com/posts/print-a-hollow-rectangle-star-with-the-help-of-nested-loop/64283ed88aa96652d68a3af7"
---

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

Discussion

# [Print a hollow rectangle star with the help of nested loop](https://vaishnavi1511.hashnode.dev/print-a-hollow-rectangle-star-with-the-help-of-nested-loop?utm_source=hashnode&utm_medium=feed)

import java.util.Scanner; /\*\* \* Link4 \*/ public class Link { public static void main(String\[\] args) { Scanner sc = new Scanner(System.in); System.out.println("enter a number"); int n = sc.nextInt(); System.out...

Apr 1, 2023 · 1 min read · vaishnavi1511.hashnode.dev  
Read the article

-   [#nestedloops](https://hashnode.com/tag/nestedloops)
-   [#start-questions](https://hashnode.com/tag/start-questions)
-   [#hollow-rectangle-with-sta](https://hashnode.com/tag/hollow-rectangle-with-sta)

## Written by

[Vaishnavi Shrivastava](https://hashnode.com/@Vaishu1511)

@Vaishu1511

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
