- 3

How Can we print Name In the Form of STAR 🌟 in java

31st Mar 2021, 11:58 AM
Abuzar Zulfiqar
Abuzar Zulfiqar - avatar
11 Answers
+ 3
Show your attempt first. And atleast give one example of your question too
31st Mar 2021, 12:39 PM
Atul [Inactive]
+ 2
Abuzar Zulfiqar Did you tried?
31st Mar 2021, 12:34 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 2
It's System.out.println(); correct it
31st Mar 2021, 12:43 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar
1st Apr 2021, 9:08 AM
Atul [Inactive]
+ 2
Stop spamming out here Shahid Zia
1st Apr 2021, 2:19 PM
Atul [Inactive]
+ 1
Yes
31st Mar 2021, 12:38 PM
Abuzar Zulfiqar
Abuzar Zulfiqar - avatar
+ 1
// Function to print the pattern of 'Z' static void printZ() { int i, j, counter = height - 1; for (i = 0; i < height; i++) { for (j = 0; j < height; j++) { if (i == 0 || i == height - 1 || j == counter) System.out.printf("*"); else System.out.printf(" "); } counter--; System.out.printf("\n"); } }
31st Mar 2021, 12:39 PM
Abuzar Zulfiqar
Abuzar Zulfiqar - avatar
+ 1
This is my first attempt but i just print LETTER by LETTER
31st Mar 2021, 12:40 PM
Abuzar Zulfiqar
Abuzar Zulfiqar - avatar
+ 1
A B U Z A R in this form it is printing Not in ABUZAR
31st Mar 2021, 12:41 PM
Abuzar Zulfiqar
Abuzar Zulfiqar - avatar
+ 1
Ok
31st Mar 2021, 12:44 PM
Abuzar Zulfiqar
Abuzar Zulfiqar - avatar
+ 1
This is just example not correct This is example of just Z letter
31st Mar 2021, 12:44 PM
Abuzar Zulfiqar
Abuzar Zulfiqar - avatar