How do you translate this in java?

this is supposedly a c statement
how is this translated in java?
i mean, is this even possible?
for (sum=0,i=0, j = 0; i < 10; i++, j+=2)
     sum += i+j;

You don't need the int declaration if it's already defined earlier in scope. If you're translating a large amount of code (not just this little piece), then that would appear to be the case (that i was already declared) as C also requires this, just as Java does.

Similar Messages

  • How do you translate the questions on the Tricia Crack app

    How do you translate the questions on the Tricia Crack?

    You have many solutions, you can FaceTime the individual if both users have access to Wi-Fi. You can also Skype them and use Video Chat.
    Additionally, you may be wanting a Remote Camera type App. ReconBot is an App that allows for you to Set up an iOS device, configure Remote settings, and connect to the camera from another device (on the web). You can even start the recording from the web.
    Hope this helps, please indicate below if so, otherwise reply for more help!

  • How can I translate this from PL/SQL into embedded SQL!?

    CURSOR TEMP1 is
    SELECT emp.fname fname, emp.lname lname, emp.ssn, dname,emp.salary salary, emp1.fname supervisor_fname, emp1.minit supervisor_mdlname,emp1.lname supervisor_lname FROM employee emp, employee emp1,department d
    WHERE emp.superssn=emp1.ssn(+) and emp.dno=dnumber order by ssn;
    PNTR_TEMP1 TEMP1%ROWTYPE;
    --calcualting values for the cursor TEMP1
    for PNTR_TEMP1 in TEMP1 loop
    fname:= PNTR_TEMP1.fname;
    lname:= PNTR_TEMP1.lname;
    ssn := PNTR_TEMP1.ssn;
    dname:=PNTR_TEMP1.dname;
    sup_name:=PNTR_TEMP1.supervisor_fname||' '|| PNTR_TEMP1.supervisor_mdlname||' '||PNTR_TEMP1.supervisor_lname;
    salary := PNTR_TEMP1.salary;
    n_deps:=0 ;
    /* how can I translate this to embedded SQL...I'm using C++*/

    Hi,
    you can follow this link to use cursor in Pro*c /C++
    http://www.csee.umbc.edu/help/oracle8/server.815/a68022/sql.htm
    Regards

  • How can I uninstall this latest java upgrade?

    I just installed a java upgrade called "build 1.6.0_05-b13 and now I cannot get Microsoft Front Page 2003 to work. I have to use MS Front Page to maintain my website. How can I uninstall this latest java upgrade so it will go back to using my previous version of java?

    I believe you may have posted your question to the wrong forum. This forum is for the JavaHelp system, which is used for developing online Help for applications, not for general help on Java.

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • I need to create a ghost image of my G4 iBook (OSX 10.3.9) and replace the OS9 on my G4 tower with the created iBook ghost image. How do you do this?

    I need to create a ghost image of my G4 iBook (OSX 10.3.9) and replace OS9 on a G4 tower with the Ghost image. How do you do this? Will my applications still work?
    The iBook is running Pather, i have tons of programs i use on it, project files, etc... and my G4 Mac tower is more powerful, faster, and more reliable than the iBook. I basiclly just want to take the entire OS, programs and files... create an image, and drop the image on the G4 Tower so it basically will function just like the iBook. Like a mirror image of everything that is on the iBook.  I know that you can create image files in the Disk Utility on Panther, but will that back up the entire OS with settings, programs, files and all?  ive never done anything like this before, so i wanted to post this up to see if i would get an answer. In the meantime, im reading "Mac OS X, Help Desk Essentials By Owen Linzmayer" to see if i can find the steps to do this.
    Any help would be greatly apprciated. Much thanks!

    Can't be done as an exact copy from one Mac to the other.  The operating systems are system specific. First make sure your system doesn't need a firmware update to get 10.2 or later on it. You'll need to install 9 on it if it does, direct from a 9 retail CD that is compatible with it *.  This disc can't say Upgrade, Dropin, or OEM. To determine compatibility, identify your G4 tower:
    http://support.apple.com/kb/HT3082
    http://docs.info.apple.com/article.html?artnum=42739
    Then look at the OS 9 compatibility:
    http://docs.info.apple.com/article.html?artnum=25517
    Then apply the correct update
    http://docs.info.apple.com/article.html?artnum=86117
    The last Mac OS 9 to come retail is 9.2.1, and that's newer than 9.0.4, 9.0.2, and 9.1.
    Your ghost image can be done using cloning software, but then you'll have to use a retail 10.3 installer and 10.3.9 combo update on the G4 tower.  Then use the Migration Assistant to import the data from the clone of the iBook. The 10.3 retail disc looks like * and does not say upgrade, dropin, or OEM.  The 10.3.9 combo update is here:
    http://www.apple.com/support/downloads/macosxcombinedupdate1039.html
    The clone to an external hard drive can be done with these instructions*:
    http://www.macmaps.com/backup.html The import of the external hard drive with the migration assistant can be done with these instructions:
    http://docs.info.apple.com/article.html?artnum=25773

  • After upgrading my iPhone4 to the latest IO it no longer connects to wifi, how do you fix this?

    After upgrading my iPhone4 to the latest IO it no longer connects to wifi, how do you fix this?

    knifepainter wrote:
    What I know is that the phone worked perfectly fine until I upgraded the software. I've tried resetting the network settings to no avail. I've shut the phone off, put it in a ziplock baggie and then into the freezer for 15 minutes. This made the wifi work temporarily but then it goes back to being grayed out. The wifi does not work at other wifi sites away from my home as well. Seems like an apple issue to me and would appreciate someone coming up with a fix, apparently I'm not the only one having this problem. Thanks for replying to my query, any ideas?
    It's likely a hardware issue.  The iOS will not directly cause this issue.
    Use this article first:
    iOS: Wi-Fi settings grayed out or dim - http://support.apple.com/en-us/TS1559
    If that fails to resolve it, then try setting it up as new and testing again.
    How to erase your iOS device and then set it up as a new device or restore it from backups - http://support.apple.com/en-us/HT4137
    If the issue remains even after set up as new, it's a hardware problem, not a software problem.  You'll need to contact Apple for you hardware service options.  If within warranty it should be free.  If not, expect to pay $149 USD + tax if it's an iPhone 4, $199 USD + tax if it's an iPhone 4S.

  • Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Contact Apple and see if they can provide any documentation of the device swap.

  • My iPhone is disabled, and I need to restore it, how do you do this?

    So I was just on the phone with Apple, and apparently you now have to pay for help on the phone? Stupidest idea ever, but what are you going to do? Anyways, some of my friends thought it would be funny to disable my phone, and now it says "Connect to iTunes" and whenever I connect it to iTunes, it says "iTunes could not connect to the iPhone "jakes iPhone" because it is locked with a passcode. You must enter your passcode on the iPhone before it can be used with iTunes." How do they expect me to enter my passcode when it's disabled? How do I fix this, it's bugging me that I can't get into my phone. Also, I heard you have to restore your iPhone, how do you do this? I don't know how the new iTunes works, it's really frustrating.
    P.S- When I tried to restore it, it says "Are you sure you want to restore the iPhone "jakes iPhone" to it's factory settings?"
    I don't want to restore my phone to it's factory settings, that's what it doesn't get.
    The point of the passcode is so that it doesn't get any person information taken away. But what's the point if this happens? I mean, either way, I have to delete all the crap anyways to get it working again... Please help me, thanks.

    The point of a passcode is to protect your information from "friends" who do things to you like they just did.  They have disabled your device and you have to restore your phone in iTunes.  Hopefully you have performed a backup recently and you can restore from that backup.  As far as paying for support, you don't have a mechanic diagnose and repair your car problems without paying so why would Apple or any other company not charge for support?  However, any charge that you have to pay for support to fix this issue......I would have my so called friends pay the bill.

  • I cant download itunes on my computer because it says " service 'apple mobile device' failed to start. verify that you have sufficient privileges to start system services. what does this mean? how do you verify this?

    I cant download itunes on my computer because it says " service 'apple mobile device' failed to start. verify that you have sufficient privileges to start system services. what does this mean? how do you verify this?

    I am having this same problem. I took Kappy advice on restarting the Apple Mobile Device Service, however that did not work. I got this message in a pop up window that came up immediately.
    Windows could not start the Apple Mobil Device Service on local computer.
    Error 1053  The service did not respond to the start or control request in a timely fashion.
    I have already uninstalled itunes, all the related programs and I cannot reinstall, this Apple Mobil Device message stops the install.
    Can anyone please help?

  • Iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?

    iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?
    Not sure if this is a game or app or not...it shows nothing about it and explains nothing about it...but it is there on the demo video on the apple website for the add to upgrade to ios 5...it shows the user dragging threads and the little icon monster at the bottom of the screen catches them

    Yea thats a game called "Cut the Rope" and it can be found in the App Store for $0.99 or you can buy the Lite version for free.

  • I have a lenovo S410 Touch laptop -with windows 8.1 -Itunes 11.1.1 ,i am trying to connect my iphone 4s but does not connect , it shows that it wants to connect , how can you connect this?

    I have a lenovo S410 Touch laptop -with windows 8.1 -Itunes 11.1.1 ,i am trying to connect my iphone 4s by USB cable but does not connect , it shows that it wants to connect , how can you connect this?

    http://support.apple.com/kb/ts1538

  • When trying to sign in to the iTunes store I get the following message, "We could not complete your iTunes Store request. An unknown error occurred (5002). There was an error in the iTunes store. Please try again later."  How do you resolve this?

    When trying to sign in to the iTunes store I get the following message, "We could not complete your iTunes Store request. An unknown error occurred (5002). There was an error in the iTunes store. Please try again later."  How do you resolve this?  Has been going on for days now.

    I started getting this message a couple of days ago.
    Started a thread of my own before I saw your post. https://discussions.apple.com/thread/4660828

  • I can't click on the tabs on my desktop firefox, firefox 30, how do you fix this?

    I have reset and still get this issue, I would go and click on open new tab and then I would see the tab on the toolbar. I would go and try to open the tab by clicking on it and it would not work. How do you fix this? I know about shortcuts but its irritating and I share the computer and the shortcuts is slowing productivity. Thank you in advance.

    The mouse does not activate a tab, but a keyboard shortcut like Ctrl+2 to activate the second tab on the bar, does work?
    The Reset was a good thing to try. But some add-ons may reinstall after a Reset so those are worth reviewing again.
    Users have reported some new tab dysfunction is associated with Conduit add-ons, such as a Conduit plugin and/or a "Community Toolbar" extension.
    You can check for and disable extensions on the Add-ons page. Either:
    * <u>Windows: Ctrl+Shift+a</u> , Mac: Command+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that help with the "+" button? If so, could you name the specific extension that caused the problem?
    You might also check the Plugins section of the Add-ons page. You can use "Never Activate" to disable plugins that you don't ordinarily use.
    Does that help at all?

Maybe you are looking for

  • Error in BSP of LSOCP300 Business Package

    Hi community, I've deployed a business package LSOCP300 in my J2EE 6.40. I've activated a BSP service in Backend system (ECC 5.0) with BP LSOFE300 (Sap E-Learning Solution). On testing the BSP service,I've a "Raise Exceptions" on link "Training Activ

  • List menu in oracle forms

    hi every body,, i face problem in dropdown list, i want to create employee list take date from database(daynamic) and another list it inclouded department number, when i change any list it will effct to seconde list. plz, help me if also you can prov

  • How do I export 72ppi jpegs from InDesign without losing quality?

    I need to export indesign files that I design to 72ppi for web without losing any quality (or as minimal as possible). Countless times I have tried different methods, but alwasy manage to create a workaround, whether it be good quality, or just reada

  • Access jsp's application object from an .java file?

    Hi, I hava a .jsp page and an import statement to a .java file. How can I access the application object in this .java file? I want to make an initialization function that I want to be called in every .jsp of the WEB application and to store this func

  • Labview 5.1 driver for HP3437A

    Hi, does anyone have a driver for a HP3437A for labview 5.1? On the ni homepage are only drivers for labview 6.0 and 7.0 available. Thanks, Niko