Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Howard Dixon   on Jul 11 In Java Category.

  
Question Answered By: Leon Evans   on Jul 11

At first sight I found missing semicolumn and brace:

/** Display's a rectangle */
void show  Rectangle(int argWide, int  argTall) {
for(int i = 0; i < argWide; i++) {
System.out.print("*");
{
System.out.print("\n");
for(int i = 0; i < (argTall - 2); i++) {
--> System.out.print("*");
--> }
for(int j = 0; j < (argWide - 2); j++) {
System.out.print(" ");
}
System.out.println("*");
}

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Java code problem Or get search suggestion and latest updates.


Tagged: