Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:
  #1  
Old 11-02-2009, 07:41 PM
gaurav_kl gaurav_kl is offline
Registered User
 
Join Date: Jan 2008
Posts: 18
syntax error

also plz tell if there is nething wrong in this piece of code-
Code:
public static final Integer multiply(Integer x, Integer y) {
return (y == 0) ? 0 : multiply(x, y - 1) + x;
}
I think as the return type is static and final we can't return different value everytime?
Reply With Quote
  #2  
Old 11-03-2009, 08:39 AM
nspils nspils is offline
Senior Member
 
Join Date: Dec 2004
Location: San Bernardino County, California
Posts: 1,455
that just means that the Integer you are returning cannot be subclassed . Doesn't mean that there is only one answer returned by the method.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JBOSS JTA for 2 phase commit in Distributed transactions Amt_asc Database 0 04-03-2009 04:13 AM
syntax error from function in include file larryy@indiana. ASP.NET 1 03-20-2009 02:29 PM
SQL Statement shers Database 4 06-17-2006 05:01 AM
I can't link FreeImage to C# mesh2005 .NET 1 03-06-2006 09:16 AM
Syntax Error Updating SQL Server Table Ralf Database 26 08-08-2002 09:58 AM


All times are GMT -4. The time now is 08:22 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.