Can any body explain this code from Hello Android book
<p>I cannot understand this code in page number 68-69  in Hello Android book. Some methods used in the code are new to me. Can anybody elaborate and explain the code.</p>

<pre><code>private static final String TAG = "Sudoku" ;
private void openNewGameDialog() {
       new AlertDialog.Builder(this)
      .setTitle(R.string.new_game_title)
      .setItems(R.array.difficulty, new DialogInterface.OnClickListener() {
           public void onClick(DialogInterface dialoginterface,int i) {
           startGame(i);
          }
})
.show();
}
private void startGame(int i) {
Log.d(TAG, "clicked on " + i);
// Start game here...
}
</code></pre>
