Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 26th, 2010, 05:31 AM
Registered User
 
Join Date: Dec 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Question Java syntax - fn decl within a parameter

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.




Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in getting the passed filename to Main Fn falcon eyes BOOK: Professional C# 4.0 and .NET 4 3 September 28th, 2010 01:52 PM
ptoblem in getting the passed filename to Main Fn falcon eyes BOOK: Professional C# 4.0 and .NET 4 0 August 30th, 2010 07:03 PM
how to capture java syntax error messages? help.. viber101 Java Databases 2 April 1st, 2009 12:53 AM
Pass a parameter from java servlet to xsl anithapeeris XSLT 3 June 20th, 2007 01:57 AM
Use of one jscript fn, 1 VB fn on Button click bvrao VS.NET 2002/2003 2 January 12th, 2004 03:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.