I have a block of code that works and I wanted to ask what exactly is happening here?
<p>The semicolon (;) at the end of the code is the thing which is got me lost.</p>

<pre><code>private View.OnClickListener onSave = new View.OnClickListener() {

    public void onClick(View v) {

        EditText name=(EditText)findViewById(R.id.name);
        EditText address=(EditText)findViewById(R.id.addr);
        r.setName(name.getText().toString());
        r.setAddress(address.getText().toString());

    }
};
</code></pre>
