Hello,
Throught the book, i can see an extensive use of fn/class declaration withing a parameter.
for example:
Code:
cancelButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
respondForSpinner.setSelection(-1);
savePreferences();
setResult(RESULT_CANCELED, null);
finish();
}
});
Can someone link me to a guide explaining the nature of this style?! (how does it named for googeling? since when it is used by Java?)
Up until now, i was not very familiar with such coding style and i seem to lack information about whether it is good/bad or what scope and capabilities it hides.