Breaking more than one loop in single command

Hi, I'm wondering if it is possible to break out of a two loop from the nested loop.
i.e
while(condition) {
  while(condition2) {
     break; //but I'm I want to break both loops
}for now I have something like this
boolean something=false;
while (condition) {
  while (condition2) {
    if (condition3) {
     something=true;
     break;
  if(something) break;
}which works, but seems inefficient. Thanks to anyone who can help.

It's not too bad unless you have killer loops, but look here at the labeled break statement
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/branch.html#break

Similar Messages

  • More than one loop in audio file

    Please, allow more than one loop in a wave file. This functionality was present in the Adobe Audition 3.0, but it is gone now. The sampler tab is gone from the metadata. Please, bring it back. Even though, the user can set more than one region marker in the wave file, only one of them is internally set to be understood as a loop and there is no way how to set more loops in a wave file. Please add this functionality back into the Audition.

    Only one audio file can be used in a Lightroom slideshow.
    You'll have to combine multiple songs into a single audio file (e.g. using Audition) then use the single audio file in the Lightroom slideshow.
    For more flexibility, you can use commercial software such as ProShow Web, Gold or Producer which comes with a free Lightroom plugin
    ProShow Gold - Create Fast and Fun Photo Slideshows
    ProShow Web - Instant Photo and Video Slideshows from your Mac or PC
    Plug-ins for ProShow

  • Can i create more than one instance for single database?

    HI
    anybody can tell me how to create more than one instance for single database(without using RAC)?
    thanks
    Kalanidhi

    Anandji,
    I sometimes think differently. I also think like what this person is asking..(although I have installed and administering 5 different RAC databases)
    The main doubt of mine is that we create multiple instances accessing the same storage area.
    Anyway the controlfiles of all instances will have the same information except the instance_names and instance id's.
    Hence I always think , why can't it be possible to to create another instance in the same system and point it to a controlfile which is copied from the other instance.
    Why can't the same files be shared between the two instances in a same system ?
    I know I am thinking a little bit confusing...
    Anyway I need to test that also...
    Mahesh.

  • Deploying more than one webapplication on single cluster

    Hello Folks,
    Is there a way to deploy more than one webapplication on single cluster of weblogic. Presently, we are getting an error while deploying second webapplication as
    “Context path is already in use by the module: First Application Name”.
    Awaiting reply, ...Thanks in Advance :)
    Amit

    Hi,
    Yes, We can. For Instance . Your weblogic cluster consist of two managed servers. Each managed server different port number.
    managedserver1: http://localhost:7003
    managedserver2: http://localhost:7005
    so your webapplication context name is same all managed servers.
    http://localhost:7003/context,http://localhost:7005/context. you should select running weblogic cluster on jdeveloper ide when you deploying webapplication to server then the webapplication deployed all managed server.

  • More than one class in single java source file?

    Is there a way to define more than one class in single java source file?
    I get a duplicate class definition error for each extra class, but I am sure there is a way to handle this in JDeveloper.
    Anyone knows how ?

    Please post the question in jdeveloper forum at
    JDeveloper and ADF
    for quick response.
    Regards,
    Anupama
    http://otn.oracle.com/sample_code/content.html

  • Need to maintain more than one address for single customer.

    Dear All,
    I need to maintain more than one address for single customer, Is it possible? If so how can I maitain kindly send the details.
    Rgds
    Srinivasan.K.R.

    Dear Srinivasan,
    I don't think you can maintain the more than one address for single customer as per the standard.
    You can this options
    1.You can create different ship to parties as per the addresses.
    2.You can change the address manually while creating sales order for single customer.
    I hope this will help you,
    Regards,
    Murali.

  • Got SQL *Plus query output in more than one in a single page

    Hi All,
    I have write a SQL *Plus code for execute one SQL query and registered as concurrent program. But I have got the output more than once in a single page after running the concurrent program. I am not getting what is the my code problem. Please can any one help me.
    This is my SQL code.
    -- These commands are added by applications concurrent manager
    SET TERMOUT OFF
    SET PAUSE OFF
    SET HEADING OFF
    SET FEEDBACK OFF
    SET VERIFY OFF
    SET ECHO OFF
    WHENEVER sqlerror exit failure
    -- set user environment
    SET pagesize 999
    SET linesize 860
    SET appinfo on
    SET tab off
    SET newpage none
    SET heading on
    --SET colsep ','
    -- define heading/footer
    --ttitle -
    -- left currdate -
    -- center 'SSFT Open PO Report' -
    -- right 'Page : ' format 999 sql.pno -
    -- skip 1 -
    -- center 'Organization US / Type Contract Labor / Status - Open' -
    -- skip 2
    --btitle -
    -- skip 1 -
    -- center 'Scansoft Inc. - All information confidential'
    -- define columns
    CLEAR columns
    SET heading on
    COLUMN c1 format a30 heading '"Last Name"' trunc
    COLUMN c2 format a30 heading '"First Name"' trunc
    COLUMN c3 format a50 heading '"Employee Name"' trunc
    COLUMN c4 format a20 heading '"Timecard Number"' trunc
    COLUMN c5 format a40 heading '"Expenditure Batch"' trunc
    COLUMN c6 format a24 heading '"Weekending Date"' trunc
    COLUMN c7 format a24 heading '"Expenditure Item Date"' trunc
    COLUMN c8 format a20 heading '"Expendtrmonth"' trunc
    COLUMN c9 format a20 heading '"Expendtryear"' trunc
    COLUMN c10 format a24 heading '"Sortdate"' trunc
    COLUMN c11 format 999999999 heading '"Task Id"'
    COLUMN c12 format a30 heading '"Task Name"' trunc
    COLUMN c13 format a30 heading '"Task Number"' trunc
    COLUMN c14 format a24 heading '"Closed Date"' trunc
    COLUMN c15 format a30 heading '"Project Name"' trunc
    COLUMN c16 format a30 heading '"Project Number"' trunc
    COLUMN c17 format a30 heading '"Project Status Code"' trunc
    COLUMN c18 format a30 heading '"Expenditure Type"' trunc
    COLUMN c19 format a30 heading '"Expenditure Org Name"' trunc
    COLUMN c20 format 999999999 heading '"Organization Id"'
    COLUMN c21 format a50 heading '"Projmrg"' trunc
    COLUMN c22 format a25 heading '"Role"' trunc
    COLUMN c23 format a24 heading '"Projmrg Start Date"' trunc
    COLUMN c24 format a24 heading '"Projmrg Start Date"' trunc
    COLUMN c25 format a35 heading '"Job Name"' trunc
    COLUMN c26 format a35 heading '"Project Type"' trunc
    COLUMN c27 format 999999999.99 heading '"Quentity"' trunc
    -- define breaks & computes
    --break -
    -- on report skip 2 -
    -- on c30 -
    -- on c20 skip 1
    --compute avg label 'Average' of c210 on report
    -- select statement here
    SELECT papf.last_name || '' c1, papf.first_name || '' c2,
    papf.full_name || '' c3, pea.orig_user_exp_txn_reference || '' c4,
    pea.expenditure_group || '' c5, pea.expenditure_ending_date || '' c6,
    peia.expenditure_item_date || '' c7,
    SUBSTR (TO_CHAR (peia.expenditure_item_date), 4, 3) || '' c8,
    SUBSTR (TO_CHAR (peia.expenditure_item_date), 8, 2) || '' c9,
    TO_DATE (SUBSTR (TO_CHAR (peia.expenditure_item_date), 4, 6),
    'MM/YY'
    || '' c10,
    peia.task_id || '' c11, pt.task_name || '' c12,
    pt.task_number || '' c13, ppa.closed_date || '' c14, ppa.NAME || '' c15,
    ppa.segment1 || '' c16, ppa.project_status_code || '' c17,
    pet.expenditure_type || '' c18, haou.NAME || '' c19,
    haou.organization_id || '' c20, pppv.full_name || '' c21,
    pppv.ROLE || '' c22, pppv.start_date_active || '' c23,
    pppv.end_date_active || '' c24, pj.NAME || '' c25,
    ppa.project_type || '' c26, peia.quantity || '' c27
    FROM pa.pa_expenditures_all pea,
    pa.pa_expenditure_items_all peia,
    pa.pa_tasks pt,
    pa.pa_projects_all ppa,
    hr.per_all_people_f papf,
    hr.hr_all_organization_units haou,
    pa.pa_expenditure_types pet,
    apps.pa_project_players_v pppv,
    hr.per_jobs pj
    WHERE pea.expenditure_id = peia.expenditure_id
    AND peia.task_id = pt.task_id
    AND peia.job_id = pj.job_id
    AND pt.project_id = ppa.project_id
    AND pea.incurred_by_person_id = papf.person_id
    AND pea.incurred_by_organization_id = haou.organization_id
    AND pet.expenditure_type = peia.expenditure_type
    AND ppa.project_id = pppv.project_id
    AND pppv.end_date_active IS NULL
    AND pea.expenditure_ending_date >= SUBSTR (SYSDATE - 545, 1, 9)
    ORDER BY papf.full_name ASC,
    pea.expenditure_ending_date ASC,
    peia.expenditure_item_date ASC;
    --spool off
    Thanks in advance
    --Subhas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi
    Either remove the semicolon (;) or the slash (/) at the end of your query, as both will execute it.

  • Packing more than one items in single packing material.

    Dear All,
    I require to pack more than one material in a single packing material. The requirement is as below.
    there are 5 item lines of different materials say A,B,C,D & E each having quantity of 500.
    Now I have to pack these material in a box such that 10 qty of each material (A,B,C,D & E) is packed in single box. Making total number of boxes to 50.
    Please help.
    thanx in advance,
    Anup

    Dear Anup,
    Please try below steps
    1)Goto VL02N to change the delivery, you already created.
    Or you can do the following steps while you are creating a delivery also.
    2)Go to "pack" icon.
    3)In the upper section, enter the "packing material"
    4)In the lower section, change the "partial quantity" to 10 for material A.
    5)Select both the lines of upper section and lower section and click the green ok. It generates a shipping unit/handling unit number.
    6)Now, select both lines of upper & lower section & click the button "per part. qty" (New HU per part qty of material)
    Check: click "General Overview" icon to see whether it packed 10 pieces of material in 5 cartons.
    You can repeat the same process for Material A, B, C, D  and E.
    Hope this helps
    Thanks
    Murtuza

  • Filtering more than one node with the command SAPBEXFilterValue

    Hello everybody,
    i have an issue with the
    Function SAPBEXsetFilterValue(intValue As String, Optional hierValue As String, Optional atCell As Range) As Integer
    Filtering with cell atCell (if this parameter is missing, then the active cell is taken as the basis)
    The internal filter value must be entered in the parameter intValue. Please note that this value can be displayed differently from the external value displayed in the filter cell. You can either use SAPBEXgetFilterValue or carry out the filter process once manually with the log book function switched on in order to determine the internal value for a known external value. The internal filter value is noted in the log.
    Enter the parameter hierValue when dealing with a node of a certain characteristic hierarchy with the filter value.
    "intValue = <blank>" means "do not filter anymore"
    If no connection to a BW server exists the function starts a logon dialog.
    The function produces a context error if atCell is not a filter cell.
    My problem:
    i would like to select inner nodes. With one node it is not a problem. I have just to use the technical name for the inner node as intValue. But I would like to select more than one node. I would like to filter 4 inner nodes with the SETBEXgetfilter command but it does not work.
    i tried also to set them iteratively but when the second filtervalue is selected the first will be overwritten.
    If i select more than one navigation panes to filter the nodes differently on a seperate navigation pane it also does not work because all navigation panes are connected and show the same.
    Does anybody know how to filter more than one node in the same hierarchy. manually it works. So there should be a way to do that with VBA.
    Thank you in Advance and kind regards,
    Murat

    solved

  • Free goods more than one for a single good

    hi gurus
    how to allocate more than one free goods for the purchase of one material. answers will be highly apprecieated

    hi,
    FREE-OF-CHARGE Goods delivered on purchase of a material can be created in transaction VBN1. But it can be only on a 1:1 ratio, hence for one material you can propose only one free good. Read the constraints of Free goods as per SAP Documentataion :
    <b>Constraints
    Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: ‘With material 1, material 2 and material 3 are free of charge‘ or ‘If material 1 and material 2 are ordered at the same time, then material 3 is free of charge‘.</b>
    Hope i`ve cleared ur query, reward points if so.
    Regards

  • Exiting more than one loop at a time?

    I have craeted a Simulated Annealing program. The pseudo code is this:
    int          temperature = x;
    double  coolingFactor = y;
    int          iterationsAtTemperature = z;
    int          currentChromosomeFitness = a;
    do{
        for(int counter=0; counter<iterationsAtTemperature; counter++){
            ...... generate new solution ......
            ...... evaluate new solution ......
            ...... swap with old solution if fitter ......
            // ESCAPE IF A SOLUTION OVER A CERTAIN FITNESS IS FOUND
        iterationsAtTemperature++;
        temperature = temperature * coolingFactor;
    )while(temperature > 0);I would like to know how to escape all of the loops when a solution over a certain fitness is found. Any ideas in how to escape not only the inner for loop but also the do-while loop in one.
    Cheers

    One way:
            int x = 0,y = 0;
            done: for (int i = 0; i < 100; i++) {
                for (int j = 0; j < 100; j++) {
                    if (i == 50 && j == 50) {
                        x = i;
                        y = j;
                        break done;
            System.out.println(x + "," + y);

  • Can't add more than one title over single clip

    This is the first time I'm using a clip that is unedited apart from a title card over black at the beginning that dissolves into the clip and a dissolve to a still photo at the end of the clip.  So far I have only been able to add three titles: the first over black, the second over the actual clip, and the third over the still photo.
    The clip lasts around a minute so I want to add titles as it progresses.  For example, the first title can last for 5 seconds, then a gap of 10 secs. and then another title for 5 seconds, etc.  Every time I try to drag the title
    Every time I try to drag a title into the project, it doesn't "take."  Does iMovie not allow a string of titles if there are no edits within the actual clip?
    Thanx.

    This applies to iMovie 08:
    1) It appears that when you drag a photo or a title to a long clip, then by default, it thinks you want a long photo (or title). It seems like it wants to make the photo 25% or more of the length of the clip. This is why it is hard to drag multiple photos to a clip. The last photo you drag is trying to take up 25% plus of the clip, and there may not be room.
    I found a good workaround. I added a dummy clip that was 4 seconds long to the end of the project. (This clip to be deleted before sharing the project). When I drag a new photo to the project, I first drag it to the dummy clip. Now the photo has a duration of exactly four seconds, and I can drag it to the place I really want it. It fits now, because it is only four seconds.
    2) I confirmed that when you put over 4-5 photos into a single clip, they will start behaving erratically. One will not show up, and another will show up twice.
    The solution is to split the long clip into multiple clips. I had a long clip. I split the long clip into 30 second chunks. To do this, I imported the entire clip several times. Then, in the first instance I selected from frames 00:00 to 30:00. In the second clip I selected frames 30:01 to 1:00:00. Then 1:00:01 to 1:30:00. etc. This way, I did not lose any footage, but I had multiple virtual clips, where before there was only one. Now I was able to add multiple photos to each of these shorter clips with no trouble. And I only needed four photos per clip. It worked great. 

  • Connecting more than one sensor cable to screw terminal to collect more than one signal in single DAQ board channel?

    I don't know if this topic is being posted in the correct location. I am new to LabVIEW and the hardware associated with it. I am using an NI 9237 DAQ board for a senior design project in engineering and I was informed that I can make multiple connections to a single screw terminal which in turn will connect to one channel of the DAQ board. To give the specifics, I have two pressure transducers and would like to connect them to the same screw terminal and channel on the DAQ board yet separate them when acquiring data in the VI. Does anyone know how to do this? I know is is essentially knowing what pins do what on the screw terminal but I can't find this anywhere. I am currently doing the job with two screw terminals and two of everything else (RJ50 adapters, etc.). I would appreciate any input. Also, please let me know if I am posting in the wrong board and if possible, which board I should be posting to.
    Thank You,
    bsteinma

    bsteinma,
    What you may have heard is that you can measure multiple signals on the same task, not on the same channel.  By tying both of these signals to the same channel, both signals will compete to drive the line.  The channel on the card will only interpret this garbled signal and you will get no useful data.  If you are new to wiring up hardware, I recommend configuring a task within Measurement and Automation Explorer and then clicking on the tab along the bottom of the page titled, Connection Diagram.  This will show you what electrical connections to make.  Then, in LabVIEW you can read multiple signals (channels) and manipulate each signal how you would like.  
    As far as boards go, you will generally find an answer where ever you post, but the Multifunction DAQ board is a great place to post when you have questions regarding hardware (like your 9237).  
    Cole R
    Applications Engineer
    ColeR
    Field Engineer

  • ADF delete from more than one table with single delete operation

    Hi all,
    I have a scenario in which I am trying to delete record(s) from 3 tables.
    My jspx page looks like this:
    Column1:drop down from 1st table
    Column2:drop down from 2nd table
    Column3:drop down from 3rd table
    Delete Commit
    I have created a view object which has these three tables as entities. I drag dropped the view object and displayed these three columns.
    Now when i select any one or all three or any two out of these and click delete, only the "column 1" gets deleted from 1st table. The remaining two tables remain unaffected.
    Y is this so?
    Can't I use one delete operation for all three tables' DML operation in single go?
    Thanks.

    If you have a business case that requires deleting from 3 tables at once when removing a single row in a view object then you may look for the problem in you data model...
    Until then I'd suggest to create a database view providing the information you need (plus the PKs fron the individual tables) and creating entity and view objects based on this view. An "instead of dele" trigger attached to the view can do the actual delete operation on the 3 tables.
    bye
    TPD

  • Fill more than one DataTable with single DataSet

    Hello,
    I would like to make a single trip to Oracle (using ODT.NET) to fill two DataTables in a single DataSet. How do I specify the Oracle Select command? I tried with a plus:
    select * from customers + select * from products
    I tried with/out quotes and with/out semicolon at end of each select. The error is SQL command not ended properly
    Thanks,
    Kim

    I don't think you can do this, at least I've never done this before.

Maybe you are looking for

  • Hp Laserjet Pro M1530 MFP Mac OS 10.6.8

    I just bought this Laserjet and have installed it correctly as far as I can see. For the Scan function according to Manual I open the HP Director and click Scan. However there is no Scan function to be found in the HP director. Pls HELP!!!! I need th

  • Dynamic rows in TableView Iterator

    Hello All, I am developing an application in which there would be a TableView with last column as a button. OnClick event on the button should add the row below the current row (the facility should be like an Excel spreadsheet where we can insert the

  • Sampling local variable and synchroniz​e with DAQmx

    Hello,  I made a small change in the set-up I used with labview and now when I wanted to change the code I'm having a rather complicated problem. In my old set-up I was measuring three variables: x and y with a QPD and the power of a laser with a pow

  • TDS Reversal in F-54

    Hi Experts, Tds is being deducted at the time of Down Payment and also at the time of Invoice. At the time of F110, Tds is being getting Reversed as of now. We want to do the Reversal of Tds in F-54,i know it is possible and i know the configuration

  • Sharing internet connection over bluetooth

    i have 2 computers less than 10 metres apart, one of which is connected to the internet broadband. the solution for sharing the connection wirelessly with this particular setup is rather expensive. i was wondering if it would be possible to share the