Posted: Thu Mar 11, 2010 7:41 pm Post subject: Java Loops program erros
Hello I cant make my program run I dont see the error in it
Quote:
class LoopsProgram
{
public static void main (String args [])
{
System.out.println ("Loops Program");
int b = 0;
final int MAX1 = 13;
int increment = 2;
for (i = 1; i<= MAX1; int+=increment)
{
System.out.println (i);
b = i;
}
System.out.println ("After the loop b = " + b +".");
}
}
Here are the errors I get upon compiling the program: