
-----------------------------------
slider203
Thu Mar 11, 2010 7:41 pm

Java Loops program erros
-----------------------------------
Hello I cant make my program run I dont see the error in it

class LoopsProgram
{
  public static void main (String args 

Here are the errors I get upon compiling the program:


3 errors found:
File: F:\ICS\nEW\TEST.java  

Any help is appreciated thank you.

-----------------------------------
DemonWasp
Thu Mar 11, 2010 8:05 pm

RE:Java Loops program erros
-----------------------------------
First, if your class (which should be declared public) is LoopsProgram then it should almost certainly be in LoopsProgram.java.

Second, you never declare i. The first part of your for statement should probably be:
int i = 1;[/code]

-----------------------------------
slider203
Thu Mar 11, 2010 8:20 pm

Re: RE:Java Loops program erros
-----------------------------------
First, if your class (which should be declared public) is LoopsProgram then it should almost certainly be in LoopsProgram.java.

Second, you never declare i. The first part of your for statement should probably be:
int i = 1;

Oh lol thanks that solved the problem :P
