TRIED THis CODE for TO FIND THE FIBONACCI USING THREAD ,BUT SHOWING ERROR FOR FOLLOWING CODE fib = fib(k+1);
showing following error in line 34
error: cannot find symbol
fib = fib(k+1);
^
symbol: method fib(int)
location: class FibN
1 error
import java.util.*;
class AsynchFunctionTest
public static void main(String[]args)
Scanner in = new Scanner(System.in);
System.out.print("enter value for n");
int n = in.nextInt();
FibN t = new FibN(n);
t.start();
try
t.join();
catch(InterruptedException e){}
System.out.println("Fib("+n+") = "+ t.getResult());
class FibN extends Thread
private int n;
private long result;
public FibN(int nn)
n = nn;
public void run()
long fib = 1;
int k = 0;
while(k < n){
fib = fib(k+1);
k++;
result = fib;
public long getResult()
return result;
rinojoseph wrote:
sorry for that this is the error i getting for that code
error: cannot find symbol line 34
fib = fib(k+1);
^
symbol: method fib(int)
location: class FibN
1 error
Process completed.
sorry
Hmm - well you declared 'fib' like this:
>
long fib = 1;
>
So how do you expect to call a 'long' as if it were a function?
Similar Messages
-
I have a horrible time with my new Iphone-4, No SIM card found issues and while i tried to contact customer care with device serial number getting a messgae of "Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us."
What step should i take next.Where did you get the phone?
That phone was replaced by Apple or an AASP and was not returned to Apple as it should have been, or it was stolen from Apple or somewhere in the supply chain.
You can not get support from Apple for that phone.
Return it to wherever you got it and get your money back. -
I have a non intel G5 and would like to download i-tune songs that I have recently purchased. I have tried everything and can't find the downloads. Did this G5 just become obsolete with itunes? If not what is the problem?
You can do it with Leopard but it depends upon the iTunes version which you did not reveal. Also make sure you are looking in the right place for purchases.
Consider buying a backup drive so you do not need to do this again. If you are going to run old hardware and software you need to live differently because yes, at some time you will find your version of iTunes no longer works. You're lucky it still works with Leopard. As you can see, some versions still work with the iTunes Store but not for repeat downloading.
Downloading (using iOS or computer) past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not all media formats are available in all countries (see: iTunes in the Cloud, iTunes Match, and iTunes Radio availability by country - http://support.apple.com/kb/HT5085); apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Downloading previously purchased movies and TV shows requires iTunes 10.6 or later. Discontinued items not available. For items not included in the iCloud list (e.g., ringtones, audiobooks), or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid. Apple recommends, "... back up your iTunes library. " (http://support.apple.com/kb/ht2519).
Additional tip at https://discussions.apple.com/message/24176756#24176756
Select the iTunes Store on the left side of iTunes if you have the sidebar displayed, or with the button at the top right.
Click on Purchased on the right side under Quick Links (see https://discussions.apple.com/message/26364186#26364186)
You can re-download your available previous purchases. -
Did you know that verizon charges ¢50 for calls from the US to Canada? Just dialing an area code like 604 (Vancouver, CA), will create charges at a rate of ¢50/minute. Amazing that they can charge this much for a call to Canada. I know they have it somewhere in their contract/website.
Did you know that verizon charges ¢50 for calls from the US to Canada? Just dialing an area code like 604 (Vancouver, CA), will create charges at a rate of ¢50/minute. Amazing that they can charge this much for a call to Canada. I know they have it somewhere in their contract/website.
-
iPhoto frustrating error..The volume for "Df23.JPG" cannot be found. It prompts for all photos with this issue rather than offering an option to ignore. I can find the images in spotlight but not in Find Photo. Does anyone have a solution?
Unless you have the source files that were on the TC or Windows machine you will have to start over with a new library as follows:
Start over from scratch with new library
Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
1. Move the existing library folder to the desktop.
2. Open the library package like this.
Click to view full size
3. Launch iPhoto and, when asked, select the option to create a new library.
4. Drag the Masters (iPhoto 11) folder from the iPhoto Library on the desktop into the open iPhoto window.
Click to view full size
This will create a new library with the same Events as the original library but will not keep the metadata, albums, books slideshows and other projects. Your original library will remain intact for further attempts at fixes is so desired.
OT -
Where can I find the plugin to open camera raw files for Nikon D810 for Photoshop CS5.1? I've looked around the site but cannot get this to work.. Thank you.
See for yourself which version of ACR is needed for that camera’s RAW files
http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
then check your version (Photoshop > About Plug-In > Camera Raw).
Your version of Photoshop does not support that version of ACR.
You could use the free DNG Converter. -
Hi,
i have purchased iphone 4s 16GB in india yesterday and when i m checking warranty status of my phone from https://selfsolve.apple.com/agreementWarrantyDynamic.do
i got responce
Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.
Please helphi
if it is from gray market is there any harm on that please let me know
my phone is working fine and even when i connected to itunes it got registered with my id, -
After I upgraded to Firefox 4, I open Firefox and my default home page comes up and so does a page that apologizes for not finding the page I am looking for. How can I get rid of this extra page when I open Firefox? I have Windows XP.
Try resetting your homepage to the '''''one''''' that you want. <br />
http://support.mozilla.com/en-US/kb/How+to+set+the+home+page -
Error code: 2147778144 Cannot find the QE property.
I have been working to get Coldfusion 8 and Crystal Enterprise 10 to work together. The following were two approaches I knew of to try:
1) using Crystal "unmanaged URL reporting":
a href="AOC_Summary.rpt?prompt0=#variables.Record_Month#&prompt1=#variables.Fiscal_Year#&user0=userid&password0=pswdn">AOC SUMMARY</a>
2) using the Coldfusion <cfreport> tag:
<cfreport report = "AOC_Summary.rpt"
dataSource = "#variables.dsn#"
username = "userid"
password = "pswd">
{AB145_AMTS.REC_MONTH} = 5 and
{AB145_AMTS.FISCAL_YEAR} = 8
</cfreport>
I got the CFREPORT tag to work but was disappointed to find that it only rendered the report in HTML. The reports we have been producing with our current configuration of CF4.5 & CR 8.5 can be saved as PDF's. So I abandoned the Coldfusion <cfreport> tag to see if I could get the Crystal "unmanaged URL reporting" to work. This included me trying to find any documentation anywhere to guide me along with going into Crystal Admin and 'experimenting' to see if there was anything I needed to do there to make the unmanaged URL reporting work.
Management is now telling me that producing the report in HTML is acceptable. I am now trying to set up a demo for management. When I went back into my CF code and uncommented the work I had done with the CFREPORT tag (which had been working at the time I commented it out), I receive the following error code.
CrystalReport Integration Exception.
Error code: 2147778144 Cannot find the QE property.
Error source: Crystal Reports ActiveX Designer
I have tried searching the SAP site to find more information on this error message to no avail. Any guidance would be greatly appreciated.
Regards,
:)mary
Edited by: Mary Fowler on Aug 21, 2008 7:21 PMI found my mistake. Used wrong .rpt file. (head drooped, tail between the legs)
Thank you for being here!
:)mary -
I want to create an intelligent file in my finder to show all pictures with 3 stars or more. Trying this, I don't know the character of the stars to fill in the respective box ??
Thanks for your help.Take a look here: http://hints.macworld.com/article.php?story=20110314131100623
One of the comments suggests you can't use greater than or less than with the star rating in Finder.
You might try a Raw Query with the kMDItemStarRating.
In the criteria popup menu, select Other, then find the Raw Query entry.
You might have to play around with the syntax, but try "kMDItemStarRating >= 3"
Take a look here for query syntax: https://developer.apple.com/library/mac/ipad/#documentation/Carbon/Conceptual/Sp otlightQuery/Concepts/QueryFormat.html#//apple_ref/doc/uid/TP40001849-CJBEJBHH -
I bought the season 7 pass for Doctore Who, but the new episodes are not showing up for download. I've been all over the support page, I even looked up my purchase history and there is are none showing and I even bought last weeks episode, The Bell's of St. John. Who can I contact to find out why I'm not getting the rest of season 7 for download?
Thanks,
ChristyQGarmin is sending you to Apple because it is Apple that would have to give you a refund as the actual point of sale. However, Apple states all sales are final.
Apple is sending you to Garmin because it is Garmin's fault their maps are out of date and Apple doesn't write the software. They may not even be looking that deeply and simply perceiving it as a programming "bug" it is up to Garmin to solve.
Who know whose fault it is that Garmin isn't getting up to date data to put in their maps.
Ultimately I think you stand the best chance in getting a refund from Apple though it isn't guaranteed. Apple is the cashier. You just have to convince them this isn't just a line of code omitted from an application and isn't something that will be soon corrected by Garmin. Make it clear it isn't a problem with the application running on your device, it is a problem with the data it contains. Either that or you have to hope Garmin will feel so bad about it they will delve down into their slush fund and send you a refund. -
How to find the list of USER-EXITS or BADI for the transaction ABSO
Hi all,
Please help me to find the list of USER-EXITS or BADI for the transaction ABSO & find the exact user-exit which meets the requirement.
Thanks & Regards,
gyanarajHi,
Copy the problem in SE38 and Execute it
Enter the Tcode u want
this will the list of Userexits and badis
TABLES: TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA: FIELD1(30).
DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS: P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA: WA_TADIR TYPE TADIR.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
ENDCASE. -
When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
Anyone know how I can do this? Thanks.Anyone?
-
Am trying to upgrade iPad 2 to 6.1.2 and it shows error like "Unable to verify Update" you are no longer connected to the internet. But am connect to my wi-fi. Can somebody throw some light on this.
============================================================
Throws error saying
"Unable to Verify Update"
iOS 6.1.2 failed verification because you are no longer connected to the internet
============================================================
Can anybody please respondTry this and see if it resolves the issue.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
Then try again. -
Where can I find the Oracle Clusterware 11.1.0.7 for Linux x86
Hello,
I am testing upgrading Oracle 11g RAC from 11.1.0.6 to 11.1.0.7 on Linu x86 (RedHat 5.3/OEL 5.3)
I haven't been able to find the Oracle Clusterware 11.1.0.7 for Linux x86 download, which is required for the RAC upgrade.
Could someone tell me the patch/patchset number or how can I search for it in metalink?
Thanks!Hi,
You need to download patch 6890831
Please see the metalink note 800603.1 for 11.1.0.7 patch set and installation instructions for Linux x86.
Hope this helps.
Regards
Satishbabu Gunukula
http://oracleracexpert.blogspot.com
[Click here to delete archive logs using RMAN|http://oracleracexpert.blogspot.com/2009/08/delete-archive-logs-using-rman.html]
[Click here for Oracle Data pump export/Import with Examples|http://oracleracexpert.blogspot.com/2009/08/oracle-data-pump-exportimport.html]
Edited by: Satishbabu Gunukula on Aug 26, 2009 10:32 PM
Maybe you are looking for
-
Sending email using UTL_SMTP
Dear experts, I am trying to send an email using UTL_SMTP (i switched from UTL_MAIL to UTL_SMTP since i need to send mails with large attachments - BLOB). I am using the demo_mail package given here: http://www.oracle.com/technology/sample_code/tech/
-
So I have just had my potentially duff 1Tb hard drive replaced by apple and uploaded my data from time machine only to discover that pages is now speaking to me in a different language. The keyboard has been selected as UK during setup. Any idea how
-
Networking between Oracle vm machines
hi, I am using Oracle vm virtual box manager and create two machines on it. One is Centos and other is solaris 10 with dhcp configuration, internet is working on both machines also access base operating system but cant access each other. I want to ac
-
Authorization for block/ubblock indicator
Hi I am facing authorization Issue. Our scenario is as follows: Purchase Order for services will be created. Release strategy will effect. If partail service entries has been done and Vendor has been left out in middle or due to poor workmanship h
-
Selected music folder location
I have seen various complaints about this basic issue, but have yet to see a solution. Due to limitations on my computer hard drive, I have chosen my Time Capsule to be the music folder location. This works fine until the connection with the TC is ev