Unable to find meaning of }); curly bracket, round bracket in Android
<p>As a beginner in Android and having been away from programming for many years, I could not find an answer for this one on the internet. It involves the following code from a book I have been reading, but the syntax is common for Android. I couldn't work out what the }); represented. As someone who, in the past, has made an effort to make bracketing readable, I find this code amazing, surely a better way of showing this is possible?</p>

<p>Here's the code:</p>

<pre class="lang-java prettyprint-override"><code>CheckBox checkBox = (CheckBox)findViewById(R.id.chkAutosave);
checkBox.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v) {
        if (((CheckBox)v).isChecked())
            DisplayToast("CheckBox is checked");
        else
            DisplayToast("CheckBox is unchecked");
    }
});
</code></pre>

<p>Anyway does anyone know the meaning of the }); at the end?</p>
