You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -647,7 +649,7 @@ The java `Scanner` and the `EventScanner` are both queues where the elements are
647
649
and the program using the queue takes the elements out from the front of the queue.
648
650
649
651
Like in the previous section, we need a loop to take out all the available events.
650
-
In each iteration, a new event while be at the head of the queue, and the inner while loop will continue until all available events are consumed.
652
+
In each iteration, a new event will be at the head of the queue, and the inner while loop will continue until all available events are consumed.
651
653
Within the inner loop, the selected branch of the `if`/`else if`/`else` statement depends on the type of event at the head of the queue.
652
654
653
655
If the head of the queue is a `MouseMoveEvent`, the `.hasMouseMoveEvent()` method will return true.
@@ -699,7 +701,7 @@ public class Main {
699
701
}
700
702
```
701
703
702
-
For a more in depth example using the `EventScanner` look at an implementation of [Conway's Game of Life](/src/examples/java/GameOfLife.java) using CodeDraw.
704
+
For a more complex example using the `EventScanner` look at this implementation of [Conway's Game of Life](/src/examples/java/GameOfLife.java) using CodeDraw.
0 commit comments