
-----------------------------------
Justin_
Wed Mar 29, 2006 3:38 pm

'.class' expected compiler error
-----------------------------------
with the for loop it does not compile, without it it does.

public class Threads1
{
    public static void main(String

-----------------------------------
HellblazerX
Wed Mar 29, 2006 4:10 pm

Re: '.class' expected compiler error
-----------------------------------

      	for(int fourTimes = 0; int fourTimes < 4; fourTimes++)


you're redeclaring fourTimes.  Just remove the int infront of the second fourTimes and it should work.

-----------------------------------
Justin_
Wed Mar 29, 2006 4:43 pm


-----------------------------------
oh jees, oops.

-----------------------------------
wtd
Wed Mar 29, 2006 5:23 pm


-----------------------------------
karel.putThing();
karel.move(3);
karel.turnRight();

This really looks like something that might be a good candidate for refactoring out into a method in a suclass of the SmarterRobot class.

-----------------------------------
rizzix
Wed Mar 29, 2006 5:37 pm


-----------------------------------
eclipse eclipse! (not for newbies though)
