setting a numeric value

Hello,

Only my 2nd attempt at programming - Please help.

The following 2 statements produce the compile error- 'Incompatible types - found int, required boolean"

statements in code:

1)if (counter = nowall)

..........

2)counter = counter - stepswest;

1) Need to capture the value of 'counter'which is incrementing in a do..whileloop.

2) Want to reset the counter by subtracting a predefined value from it.

Definition in main:

int counter, nowall, stepswest, stepssouth;

counter = 0; nowall = 0; stepswest = 7; stepssouth = 6;

Thanks so much.

[627 byte] By [monica001a] at [2007-10-3 9:45:07]
# 1
> 1)if (counter = nowall) This should be if (counter == nowall)
mvantuyla at 2007-7-15 5:01:43 > top of Java-index,Java Essentials,New To Java...
# 2
Thank you.
monica001a at 2007-7-15 5:01:43 > top of Java-index,Java Essentials,New To Java...