Web appOpen in Telegram

PostHollow Rhombus Pattern for number n

19 June 2025
<
</> ᴍᴜᴋᴇsʜ </>
Hollow Rhombus Pattern for number n public class hollowrhombus { public static void hollowrhombus_pattern(int n) { for (int i = 1; i <= n; i++) { for (int j = 1; j <= n - i; j++) { System.out.print(" "); } for (int j = 1; j <= n; j++) { if (i == 1 | i == n | j == 1 | j == n) { System.out.print("*"); } else { System.out.print(" "); } } System.out.println(); } } public static void main(String[] args) { hollowrhombus_pattern(5); } } Output: ***** * * * * * * *****
2 · 1.4K ·

Nearby in the feed

<</> ᴍᴜᴋᴇsʜ </>Butterfly Pattern using java of number n public class Butterflypattern { public static void butterfly_pattern(int n) { for (int i = 1; i <= n; i++) { for (int j<</> ᴍᴜᴋᴇsʜ </>Solid Rhombus Pattern for number n public class solidrhomus { public static void solidrhomus_pattern(int n) { for (int i = 1; i <= n; i++) { for (int index = 1;
this message
<</> ᴍᴜᴋᴇsʜ </>Diamond Pattern of number n public class diamond { public static void diamond_pattern(int n) { for (int i = 1; i <= n; i++) { // blank space for (int j = 1; j <<</> ᴍᴜᴋᴇsʜ </>Reverse an array public class reverseArr { public static void reverse(int numbers[]) { int start = 0; int last = numbers.length - 1; while (start < last) { int
JJava Codes Basic to AdvanceJava Codes Basic to Advance@Java_Codes_Pro · channel · Tech
1 988subscribers213posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count