Initializing more than one variable of different types in for-loop

I know it is possible to initialize two variables of the same type in a for-loop like this:
for(int i=0, j=0;i<=word.length/2;i++){}
However, I'm trying to initialize two variables of different type in the initialization of for-loop. And the IDE won't let me do it..
for(int i=0, double j=0;i<=word.length/2;i++){}
Is it even possible to do initialize two variables of different type?

Well, just for fun, you can write very generalized for loop. you can do it in a complicated way though.
But, for god sake, why would you do that?
             boolean someboolean = true;
          for(Object i=new Integer(0),j=new Double(1);someboolean;i=(Integer)i+1){
               j =(Double)j + 1;
               if((Double)j>3)
                    someboolean = false;
               System.out.println("i: "+i+" j: "+j+" someboolean:"+someboolean);
          }

Similar Messages

  • One Key FIgure in more than one column with different restrictions

    Hi,
      I am using a key figure in more than one column with different restrictions, but restriction in one column is affecting the result in other column. What shall i do to make it independent from one another??

    Hi Pravender Chauhan,
        If you want in Single column different value for different Rows based on same Key Figure, you can create Structure where you can define different logic for each row but using same key figure.
    If you want to use different Key figures then you should have to Restricted Key Figure and for any calculation you can use calculated Key figure.
    Assign points if Useful.
    Regards,
    Rajdeep.

  • Hello! I have in my home 2 iMac, 2 iPad, 2 iPhone, and 1 air base extreme. I don't succeed to connect more than one divice from similar type. I tried everything what I knew. I build another network, etc...

    Hello! I have in my home 2 iMac, 2 iPad, 2 iPhone, and 1 air base extreme. I don't succeed to connect more than one divice from similar type. I tried everything what I knew. I build another network, etc...
    So only one imac, only one ipad..and so on simultain.
    More over, all the divices are conect through wifi to air base but are not receiveing internet as i told above.
    I need to disconnect one device to have internet on the second one from the same type!
    Could somebody help me?
    Many Thnaks,
    dan

    If your network configuration is:
    Cable modem > (Ethernet cable) > [WAN] AEBS > (wireless) > Macs, then
    AirPort Extreme Base Station Setup (AEBS) w/High-Speed Cable Modem
    Modem/Router Power ReCycling
    - Power-off the Cable modem, AEBS, & computer(s). (If possible, leave the modem off overnight.)
    - Power-on the Cable modem; Wait at least 30 minutes.
    - Power-on the AEBS; Wait at least 5 minutes.
    - Power-on the computer(s)
    Perform a "hard" reset of the AEBS.
    - (ref: http://docs.info.apple.com/article.html?artnum=107451)
    Setup the AEBS
    With the network components powered down, set up the AEBS, using the AirPort Admin Utility, connect your computer directly (using an Ethernet cable) to the LAN port of the AEBS, and then, try these settings:
    AirPort tab
    - Base Station Name: <whatever you wish or use the default>
    - AirPort Network Name: <whatever you wish or use the default>
    - Create a closed network (unchecked)
    - Wireless Security: Not enabled
    - Channel: Automatic
    - Mode: 802.11b/g Compatible
    Internet tab
    - Connect Using: Ethernet
    - Configure: Using DHCP
    - WAN Ethernet Port: Automatic
    Network tab
    - Distribute IP addresses (checked)
    - Share a single IP address (using DHCP & NAT) (enabled)
    Once you verified that you can get Internet access for all of your computers, you should secure your wireless network. To do so, I suggest that you make these changes:
    AirPort tab (optional)
    - Create a closed network (checked)
    Change Wireless Security
    - Wireless Security: WPA Personal
    Base Station Options - WAN Ethernet Port
    - Enable SNMP Access (unchecked)
    - Enable Remote Configuration (unchecked)
    - Enable Remote Printer Access (unchecked)
    Wireless Options
    - Transmitter Power: 10%
    Access Control tab (optional)
    - + <add the computer(s) that will access this wireless network>

  • More than one variable at a time in case statement

    hi i am using oracle 10g database.
    can it be possible ?
         in if condition we can have more than one variable in one condition
           if a=100 then
               b:=200;
               c:=300;
           end if;
    how it will be in case statement ? i have searched lot on internet but didnt get
    case
    when a=100 then 200, 300 ... ???
    thanks

    Hi FRNzzz!! wrote:
    hi i am using oracle 10g database.
    can it be possible ?
    in if condition we can have more than one variable in one condition
    if a=100 then
    b:=200;
    c:=300;
    end if; how it will be in case statement ? i have searched lot on internet but didnt get
    case
    when a=100 then 200, 300 ... ???
    thanksnot sure if I got your question correctly, is this what you are looking for?
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2      a number := 100;
      3      b number;
      4      c number;
      5  begin
      6      case
      7        when a = 100 then
      8          b := 200;
      9          c := 300;
    10        when a = 0 then
    11          b := 300;
    12          c := 400;
    13        else
    14          b := 0;
    15          c := 0;
    16      end case;
    17  dbms_output.put_line('a :'||a||' b :'||b||' c :'||c);
    18* end;
    SQL> /
    a :100 b :200 c :300
    PL/SQL procedure successfully completed.

  • Pop to get more than one value of same type

    Hi
    I want to give pop up that can take 3 customer numbers
    and export it.Problem with <b>popup_get_values</b> function module is that you cannot get more than one value of same type for example here <i>kna1-kunnr</i>.
    Is there any function module to solve this problem.
    Regards
    Amol Deshmukh

    Hi,
    may be you can use knvv-kunnr for the second value ....
    That should also do the job.
    regards
    Siggi

  • How set value for more than one variable using a single prompt

    There is a way to set more than one variable with a single prompt?
    e.g. set @CurrentYear and @PasteYear using just a single prompt for @CurrentYear.
    Some hint?
    Thanks
    Luc

    Using repository variables you can set like that.
    Check this link http://gerardnico.com/wiki/dat/obiee/set_variable
    If helps pls mark

  • HT1040 Is there a way to place an order with more than one item at a time? For example I am going to make a few books and have them all shipped to me.  Do I have to order and pay shipping for each one individually?

    Is there a way to place an order with more than one item at a time?  for example I am making a few books and having them all shipped to me.  Do I have to order each one separately and pay shipping each time?

    You have to order each book separately, if the books are different. Only multiple copies of the same book can be ordered in the same order, see here
    Regards
    Léonie

  • Material has more than one plant, only show the price for the first on

    Hi:
    I am having the standard price for the material with the different plants ,I am seeing only one Material and Standard price(if a material has more than one plant, only show the price for the first one In the report ):
    plant :de87 Material: 60020601 Standard price: 1237.00
    plant:PT01 Material :60020601 Standard price: 634.00
    In the report I am seeing DE87 with the standard price :1237.00 .
    I am extracting from the 0MATERIAL_ATTR
    Please help me how can I display all plants with the material and std price. In my data source there is no PLANT
    rgrds
    Kumar

    Hi:
    Report is running on 0MATERIAL(Transactional master data),Data sourc: 0MATERIAL_ATTR,
    We are having the standard price in the 0MATERIAL ,(Standard price is combination of plant and Material) .Plant is not available in the material,so in the report its displaying only first result
    plant :de87 Material: 60020601 Standard price: 1237.00 --->Displaying this
    plant:PT01 Material :60020601 Standard price: 634.00
    In the above we are having the same material but different plant and different standard price. so I need to display the both in the report.
    Rgrds
    kumar

  • How to fix "More than one receiving system has been specified for the BAPI"

    Due to patching the HR system I am testing the functionalities in our test environment before patching the production system. When doing a hiring action (in our test environment) I get this error message at infotype 0000 when I try to save:
    "More than one receiving system has been specified for the BAPI (AcctngServices, CheckAccountAssignment)"
    It is message no. B1811
    My first suggestion weas that it could be the presence of dual connections in SALE, but disabling one of them didn't help.
    Since the Basis team is currently patching the HR system I wonder if that has any affect that might end out in the above error.
    Anyone who can help me out here? Please?

    Usually, when you have HR and FI on separate boxes, certain FI information (e.g. cost center) do not physically locate on HR box. Instead of replicating these data into HR for integrity check, you have an option (for a few countries) of remotely connecting from HR box to FI to do these checking though BAPI. I think this is the scenario you have (i.e. when doing the hiring, a new ee will be assigned to a personnel area which in turn default a cost center which SAP would need to check for integrity).
    Please go into distribution model, and check if for some reason, this is set up to go to to more than 1 destination for HR accounting integrity check.
    Rgds.
    Edited by: Ted Dinh on Jun 12, 2009 8:55 AM

  • In MIRO,more than one PO with different vendors than also system is posting

    Dear All,
    When in MIRO, vendor invoice is posting with reference to more than one PO's and if vendors are different in PO's then also system is posting vendor invoice and in this case, system is considering vendor of first mentioned PO and posting the document. This is error found to be in factory business process and need to be controlled immediately, otherwise any repercussions can be faced in future.
    Can anyone advice how to control this.
    Thanks
    Madhukar Mittal

    Hi,
    The system will take over the invoicing party from the first PO and                
    ignore the invoice party from other POs.                                           
    You can see it in Detail tab in MIRo (or in MIR4). This is standard funktionality.                                                                               
    Please check the information from the following notes.                             
    393431                                                                             
    458692   
    Best regards
    Erika

  • How to control more than one instrument via different interfaces at the same time

    Hi, I am new to Labview.  I am working in a project where I have to make a Automated testing tool . So, here is the set up -  I have a Chip on a board to which there are several instruments connected namely Agilent power supply, Agilent pattern generator, oscilloscope,Dmm and Thermotron. All these instruments will be connected to the host computer via ethernet, GPIB or RS232. I have to write a program on Labview where the program  should be able to communicate with these  instruments  at  the same time  and show the ouput  on display unit . I have to run the program once, should be able to view the ouputs. So, Is it possible to write such program in Labview??.  I have  downloaded  few instuments  drivers. Is it possible to combine those intrument drivers and construct a new VI which would be able to control all this ??   Will it be easier to program this on Labview or  I should  go for Labwindows/CVI  ??.
    Please mention some useful sites or tips (if u know) for writing program.
    Thanks in advance
    shasanka

    Hi Shasanka,
    ofcourse it's possible to control more than one instrument at a time.
    You should use the VISA routines to access all your devices. Every device get it's 'address' as 'VISA resource name'. This resource name contains information on the used bussystem and the (internal) device address (i.e. GPIB devices have an address number).
    So I suggest to read the manual and to look at the examples that come with LabView!
    And (from your question) it seems you should take the 3 or 6 hour seminar as well! (Look at www.ni.com -> academics.)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Add Suppporting Details for more than one periods at the same time for the same Account in Planning.

    As we know, in planning form, we can add supporting details to one cell for the level 0 members intersections.
    But can we do that as below:
    add supporting details for more than one cells at the same time?
    I tried to do that in workspace and smartview, neither is working.(my workspace version 11.1.2.2.300.20)
    I wonder if i am not with the right version, because i don't know how to get the below.
    Can any one explain?
    Thank you.

    Hi,
    I have tried in Smartview for a simple form where my period dimension was in columns and accounts in rows.
    You need to select multiple period and select supporting details, it will show those selected period for which you can add the supporting details.
    You can add these details and then submit the data in the form.
    Regards,
    Sourabh

  • Using more than one phone number on single iPhone for iMessage?

    Is it possible to intentionally have more than one phone number listed under Settings > Messages > Send & Receive?  I know I've heard of 'glitches' where more than one phone number is shown accidentally and how that is solved (signing out of iMessage and then back in), but if you want to intentionally have more than one phone number listed there (say, the phone number of your own device and also the phone number of your work-related iPhone), is there a method?  I'm leaning toward the answer of 'no', but I'm wanting to double check.

    robdrage wrote:
    I'm not sure, but if you use the same Apple ID for both iphones and register both with messages, then you may be able to go to device one Settings>Messages>Send&Receive and select device twos number as well.
    I thought about that. For some reason, I think that I've heard it doesn't work. Sadly, however, I don't have two iPhones with which to test it.

  • Adding more than one email to my oj4630 printer for mobile ePrint

    How can I add more than one email address to my oj4630 printer to use mobile ePrint? Do I have to use one email address for each mobile phone?
    Thank You
    bj52  

    Hi,
    Are you talking about the authorized list ? If Yes, you have to logon to your ePrint account (HP Connected) and add more email address(es) to the list. ONLY authorized email addresses can send successfully to your ePrint printer email address. You can use any email address on the list one any device given it can access to email account on the list.
    For example, in my authorized list, I put my hotmail and yahoo emails addresses in there. I can access both accounts on my smarthone, iPad, desktop, laptop ... and I can use my hotmail or yahoo email address to send to my ePrint printer email address to print.
    Hope this answers your question.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Upgrading more than one project on a single server for OBI 11G

    Hi,
    Is it possible to upgrade more than one project's RPD and Webcat on a single server and then demo them one at a time i.e I upgrade the RPD and Webcat for Project A, do the demo and then I upgrade the RPD and webcat for the Project B on the same server and do the demo for the project B as well?
    Any pointers would be of great help.
    Thanks.

    You will have lot of challenges by doing this I.e when you do
    An upgrade the security information will be imported into the weblogic
    Which will have conflict with other upgrades.
    If there is no overlap in security then you can do this
    Edited by: CSS on Mar 6, 2012 3:44 PM

Maybe you are looking for

  • Error:There was an error processing a page. There was a problem reading this document (129)

    System: Windows 7 64-bit Adobe Acrobat Pro X Client received a pdf file and gets this message when try to open it. I test it on my PC which is using Acrobat standard (same system) and gets the same error. Did some research on Internet and this messag

  • NEW TO MAC PLEASE HELP

    OK SO I BOUGHT THIS IMAC TODAY WITH 20'screen and i am unable to install anything i download it keeps asking me for a prog to open it with but ive looked everywere and cant find anything. why is it when you download somthin off the net that it does n

  • Why can't I log into my sidereel account

    I've asked for help about this issue a couple of weeks ago already. I have an account with sidereel. I never had problems and everything was working fine. Suddenly I can't access my account. I keep coming back in the screen where I need to sign up or

  • Centering JInternalFrame inside MDI App

    If someone can steer me in the right direction with this problem...I just want to center my login screen in the center of the parent JDesktop. I thought by just using the setLocation(int,Int) it would work but it is not working. As of now the screen

  • Motherboard for dv6 3120

    My laptop has stopped working. I need a replacement motherboard for it. Pavilion dv6 3120. Any suggestions?