Question: ```
    public boolean used[] = new boolean[26];

```

Here is what I have, and it's working great. I know they are all going to be set as false by default. But, as my application is used for a while, some of those are changed to "true". (Which is fine, since that's what my code is supposed to do). 

I'm trying to create a "reset" button, which will simulate a reset-like action. Where all variables are restored to what they were when the window was initially created (all drawings go away - just a fresh restart).

And I need all of those true booleans to go back to false in one fell swoop. Any ideas?

Answer: 
Use [`Arrays.fill`](http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#fill%28boolean%5B%5D,%20boolean%29):

```
Arrays.fill(used, false);

```
Use `java.util.Arrays.fill()`:

```
Arrays.fill(used, false);

```