
September 17th, 2007, 07:43 PM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 1
Time spent in forums: 20 m 34 sec
Reputation Power: 0
|
|
|
A quick issue
I think I'm going to laugh at this once I figure it out... Anyways, I get a few issues when I try to compile this program.
Code:
public class Assignment1
{
public static void main(String [] args);
int step = 6;
for (i=1; i < step; i++)
{
if (i == 0 || i == 1)
{
System.out.println("\t\t[][][]\n");
}
else if (i == 2 || i == 3)
{
System.out.println("\t[][][][]\n");
}
else
{
System.out.println("[][][][]\n");
}
}
}
It has a problem here
Code:
for (i=1; i < step; i++)
Complains about an illegal start of type. This may not only be the only issue. Basically I'm trying to get the following output.
URL
I appreciate any help here... I have done my end and I have been researching on how to get this running but I'm stuck and I've been working on this for over three hours... 
|