Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 17th, 2007, 07:43 PM
MdL MdL is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 1 MdL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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...

Reply With Quote
  #2  
Old September 18th, 2007, 04:35 AM
Icon's Avatar
Icon Icon is offline
Command Line Warrior
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Sep 2005
Posts: 1,021 Icon User rank is Private First Class (20 - 50 Reputation Level)Icon User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Weeks 8 h 12 m 36 sec
Reputation Power: 14
Try:
Code:
for (int i=1; i < step; i++)
__________________
There is no such thing as C/C++, you either program C or C++

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > A quick issue


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap