|
-
June 21st, 2011, 02:51 AM
#3
Re: Lucas/Fibonacci sequence HELP please!!
 Originally Posted by ckinser
System.out.printf ("Lucas #%d is %s\n", num, getLucas);
The program doesn't look complete. Does it compile at all?
The above print statement isn't consistent with how getLucas is defined. GetLucas is expected to return a String (%s) but it's defined to return an int. And it isn't called with any parameters at all although it's defined to be passed a double.
Last edited by nuzzle; June 21st, 2011 at 03:08 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|