#making a square with * but with extra weird steps

7 messages · Page 1 of 1 (latest)

haughty salmon
#

I already completed the 1st question but the 2nd one is weird help

The code for the 1st question that prints out the right answer:
class Shapes { public static void main(String[] args) { for( int i = 1; i < 4 ; i++) { System.out.println("*****"); } System.out.println(); } }

red turretBOT
#

This post has been reserved for your question.

Hey @haughty salmon! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

haughty salmon
#

The current code I have for the 2nd problem is
class Testing { public static void main(String[] args) { System.out.println(); /*draw a 5x5 square. The print operator is like println, but doesnt go to the new line after it prints*/ int size = 5; for( int i = 5; i < 6; i++) { for(int j = 2; j< 6; j++){ System.out.println("*"); } // System.out.println(); } } }

#

it prints out
*
*