|
@@ -159,9 +159,7 @@ public class WriteLoops {
|
159
|
159
|
|
160
|
160
|
// you need to use a .equals for two Strings.
|
161
|
161
|
while (!gpsCurrentLocation().equals("Home")){
|
162
|
|
- driveSomeMore();
|
163
|
|
-
|
164
|
|
-
|
|
162
|
+ driveSomeMore();
|
165
|
163
|
// calling
|
166
|
164
|
w = w + 1;
|
167
|
165
|
// each time through the inner loop
|
|
@@ -205,7 +203,8 @@ public class WriteLoops {
|
205
|
203
|
int runningScore = 0;
|
206
|
204
|
|
207
|
205
|
// do your while loop here
|
208
|
|
- do { runningScore = currentScore + runningScore;
|
|
206
|
+ do {
|
|
207
|
+ runningScore = currentScore + runningScore;
|
209
|
208
|
w = w + 1;
|
210
|
209
|
currentScore = gameNextScore();
|
211
|
210
|
|