Web appOpen in Telegram

PostPrint Hollow Rectangle Pattern using java .

12 June 2025
<
</> ᴍᴜᴋᴇsʜ </>
Print Hollow Rectangle Pattern using java . public class Hollowrect { public static void HollowrectPattern(int noOfRows, int noOfCols) { // for rows outer loop for (int i = 1; i <= noOfRows; i++) { // inner loop for (int j = 1; j <= noOfCols; j++) { // cell (i,j) if (i == 1 || i == noOfRows || j == 1 || j == noOfCols) { System.out.print("*"); } else { System.out.print(" "); } } System.out.println(); } } public static void main(String[] args) { HollowrectPattern(4, 7); } } OutPut: ******* * * * * *******
5 · 1.7K ·

Nearby in the feed

<</> ᴍᴜᴋᴇsʜ </>Write a Java program to check if a number is a palindrome in Java? import java.util.*; public class quest3 { // Write a Java program to check if a number is a p<</> ᴍᴜᴋᴇsʜ </>Reverse Decreasing Star pattern of number n ****** ***** **** *** ** * CODE : public class pattern1 { public static void reverseStar(int n) { // reverse pattern
this message
<</> ᴍᴜᴋᴇsʜ </>Inverted Half Rotated Pyramid public class invertrothalfpyramid { public static void inverted_half_pyramid(int n) { // outer loop for (int i = 1; i <= n; i++) {<</> ᴍᴜᴋᴇsʜ </>Inverted half pyramid of number . public class invertedpyra { public static void Inverted_half_pyramid(int n) { for (int i = 1; i <= n; i++) { // inner loop for
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