Whats the differece between them?

Can anyone explain me the difference in this code?
Why do we an if(!) condition? What are the best reasons to go for this kind of code?
What is wrong with my breat label statement below?
List<SalesOrder>listReturned = new ArrayList<SalesOrder>();
Set <String>ids = new HashSet<String>();
if (ids.contains(so.getTempOrderNumber())) break label379;//this part of code displays an error
        label379: list.add(so);
if (!ids.contains(so.getTempOrderNumber()))
list.add(so);
}

I need to know if the two versions of code are equal?
I have read the tutorial you said(i.e javaworld nuts and bolts)? I could not understand this codeeven after reading that?
Question:
is if((!(some expression)))&&((!(!(some expression)))
is similar to
if(expression||expression)?
What role parenthesis in this expression signify?
if (accounts.containsKey(type)) {
for (ErpQADBase rec : accounts.get(type)) {
if (rec.getAccountNumber().equals(accountId) || rec.getTemporaryAccountNumber().equals(accountId)) {**
   return rec;
} else {
     accounts.put(type, new ArrayList<ErpQADBase>());**
if (accounts.containsKey(type))
        for (localIterator = ((List)accounts.get(type)).iterator(); localIterator.hasNext(); )
rec = (ErpQADBase)localIterator.next();
  if ((!(rec.getAccountNumber().equals(accountId))) && (!(rec.getTemporaryAccountNumber().equals accountId))))      
    break label92;
       label92: return rec;
      else {
        accounts.put(type, new ArrayList());
      }

Similar Messages

  • What the difference between them?

    I want to know the difference between Adobe Photoshop CS4 Classroom in a Book's content and Photoshop CS4 help(pdf file) content.
    Thanks for your help~

    The Classroom in a Book is great for learning your way around.  You get a cd with the book that has the bits and pieces needed for each lesson.  Each lesson takes you through a particular project from beginning to end.  The book provides step by step instructions on what you are doing, why you are doing it and has screen prints showing you where to find the tools and how to enter the settings to get the effect you need.  I like this so much better than some of the video tutorials because you can go at your speed and it is easier to flip a page back and forth than to backtrack on a video tutorial.  It is more in depth - like being in a classroom with a teacher.

  • Whats are the Forms and Reports in QM?and what is differece betwwen them?

    whats are the Forms and Reports in QM?and what is differece betwwen them?

    Hi,
    1. Forms are like templates.Forms define the text format and page layout of documents, which can be formatted (in accordance with the definitions) for display on the screen or for output to a printer.
    2. Executable program that allows users to read and evaluate data in the database.
    You can either display the output of a report on the screen or send it to a printer. You can also save it, so that it can be displayed as often as you like. It is important to be able to do this, because reading large volumes of original data can impair performance.
    Examples of reports are ABAP reports, queries, and drilldown reports.
    In short, forms are only templates and reports will retrive the data from system in certain format.
    Vishal

  • When to use Infotype 0014 & 0015? what is the differences between them?

    When to use Infotype 0014 & 0015? what is the differences between them?

    Hello
    Infotype 14 is used for recuring payment and deductions
    The wagetype to be used for IT0014 is maintained in VV_52D7_B_0014_AL0 ,against the country grouping.
    IT0014 is always entered with a start date and end date along with the wagetype and amount /unit relevent for payment/deduction
    Say you want to make a special allowance payment to some employee for a period of 6 months only.
    So in IT0014,you will enter the wagetype that is maintained for special allowance  with a start date of say 01.10.2011 to 31.03.2012 with amont as Rs.1000.
    So when you run payroll for the period october 2011 until march 2012,this amount of Rs.1000 will be paid to the employee
    Infotype 15 is used for one time payment or deductions.
    The wagetype to be used for IT0015 is maintained in VV_52D7_B_0015_AL0,against the country grouping
    IT0015 is always entered with an effective date along with the wagetype and amount/unit relevent for payment deduction.
    You want to make performance award pay to employees in the month of march 2012.
    You will enter the amount in IT0015 with the effective date as 31.03.2012 for the wagetype as maintained for performance award ,amount say rs.50000.This amount will be caluclated and paid to the employee as a one time payment in march 2012 payroll
    Thanks and Kind Regards
    Ramana

  • What are BI reports and ABAP reports and the difference between them ?

    What are BI reports and ABAP reports and the difference between them? please explain me in detail and let me know if you have some documentation about it.
    Thank you in advance!
    Steve Jobs

    Do we have to write custom code for the ABAP reports? Do you have any documentation about it?
    Thank you.
    Steve Jobs

  • Whats the difference between arrayCollection = null and arrayCollection.removeAll()?

    Whats the difference between arrayCollection = null and
    arrayCollection.removeAll()?

    In arrayCollection = null; statement you're setting this
    reference to null and potentially making it available for garbage
    collection. I say 'this reference' and potentially because, as you
    may know, there might be other references to this array collection
    object that won't be affected by this statement and hence it won't
    be GC'ed.
    arrayCollection.removeAll() says that I want to empty this
    array collection for all the reference that we pointing to it. That
    is, remove all the objects from the collection -- and of course
    make them 'potentially' available for the GC -- the size of the
    array collection would be reduced down to zero and all the
    references would be pointing to a valid but empty collection.
    Hope this helps.
    ATTA

  • I have three iPhones on one iTunes account.  Evere since upgrading to ios5 the text between them is screwed up.  Anyone have this problem or know how to fix?

    All of the text between them are screwed up.  They cannot text  just one.  The text goes to and comes from each.  Very annoying. Please help

    Is it actually texting that is the issue or iMessage?
    If it's iMessage... then you need a unique iCloud ID for each device otherwise it will do exactly what you are experiencing.

  • Whats the difference between wifi sync and icloud?

    Good afternoon...am a little confused about syncing over wifi with itunes and wirelessly with icloud.  Right now the computer I sync my devices with is an older macbook that can't be updated to Lion.  I am confused though by wifi sync ability...does my macbook have to be up and running while my ios devices are powered to sync or will the devices sync anywhere to the icloud?   Since my macbook can't update to Lion will I still be able to take advantage of this icloud goodness?  My macbook is not my main computer but it has all of my itunes content and playlists.  Hope this made sense.

    My first question is this: Have your devices all been updated to iOS 5? Assuming they were running 4, then updated to 5, all your data should be on the device. From here, if you were to sync everything to the cloud, all your data will be in the cloud. It will take all the info from your devices and sync it to the cloud. However, make sure on each device you choose what you want to sync, because it will pretty much make everything the same accross all your devices. Obviously your classic isn't going to be included, so you will still need to sync that, but with the phone and the ipad, you will need to decide what you want to sync between the two. I don't own two separate devices, so I don't know exactly what the conduct between the two is, but be carefull when syncing them to the cloud.

  • Whats the difference between Fatal1ty and Fatal1ty USB heads

    Whats the difference between Fatal1ty and Fatal1ty USB headset? What is the $30 price difference for other than a USB connection?
    Also, what is the advantage to using the USB port?
    Still trying to decide on which headset to buy. I will be using these mainly for gaming and some music. Although i'm not real picky when it comes to music quality. Even considered the HS-1200 wireless. Which headset of these 3 has the best sound quality and better quality?
    Message Edited by iowabucks on 10-20-2008 07:54 AM
    Message Edited by iowabucks on 10-20-2008 08:10 AM

    Any USB sound related item is going to use system resources instead of the non usb version. The non usb version uses the resources of the sound card and not system resources. So you should get cleaner sound with the non usb version.
    But, be aware creatives tech support is not the best in the world. Keep that in mind when buying a product from them.

  • Whats the difference between and Album and a Smart Album

    OK, just upgraded.... So, whats the difference between an Album and a Smart Album?  
    Also, I like to organise my stuff, so if I create a folder for each year, and then a project within that year, why is it that the photos are always in both - and then again if I chose to create an album specific to a project, they are there again.
    So it might look:
              Folder (2012 Equine Photography)
                   Project - Specific Events
                        Album - Big Barn Dressage May
    Does this mean the individual photo is stored 3 times and using 3 times the space?
    Thanks guys!

    Mrsthebraggster wrote:
    So it might look:
              Folder (2012 Equine Photography)
                   Project - Specific Events
                        Album - Big Barn Dressage May
    Does this mean the individual photo is stored 3 times and using 3 times the space?
    No. Conceptually the Master only lives lives in the single (time based) Project you import it into. Albums are just collections of pointers that point to  images in various Projects.
    "Big Barn Dressage May" could be a Project, but only if it is only one day and a limited number of image files; otherwise an Album. "2012 Equine Photography" should be an album or a Folder of Albums. "Specific Events" could be an Album or a Folder of Albums.
    A Project should not be used as a Folder.
    From an earlier post of mine:
    Folders are indeed flexible organizational tools but IMO often overused. Folders can effectively hide contents from view and therefore require users to remember how folders are nested and what is inside them. Folders were the only way to deal with single-original film, but are IMO limiting to image database thinking.
    The way I look at it conceptually:
    Aperture is a database (DB), and each image file lives in one Project.
    Albums are just collections of Pointers that point to individual image files living in one or more Projects. Since they just contain pointers, albums can be created or deleted at will without affecting image files. Very powerful. And Albums of pointers take up almost zero space, so they are fast and do not make the Library size grow.
    Keywords can be applied to every image separately or in batches. Keywords are hugely powerful and largely obviate the need for folders. Not that we should never use folders, just that we should use folders only when useful organizationally - - after first determining that using keywords and albums is not a better approach.
    As one example imagine the keyword "flowers."  Every image of a 100,000 images Library that has some flowers in it has the keyword flowers. Then say we want to put flowers in an ad, or as background for a show of some kind, or to print pix for a party, or even just to look for an image for some other reason. We can find every flower image in a 100k-image database in 2 seconds, and in another few seconds create an Album called "Flowers" that points to all of those individual images.
    Similarly all family pix can have a keyword "family" and all work pix can have a key word "work." Each individual pic may have any number of keywords. Such pic characteristics (work, family, flowers, etc.) should not be organized via folders.
    So by using keywords and albums we can have instant access to every image everywhere, very cool. And keywords and albums essentially take up no space in the database.
    Another approach is to use a folder "Family" for family pix, a folder "Flowers" for flowers pix and another folder "Work" for work pix. IMO such folders usage is a very poor approach to using an images database (probably stemming from old paper or film work practices). Note that one cannot put an image with family in a field of flowers at a work picnic in all three folders; but it is instant with keywords.
    HTH
    -Allen

  • Whats the difference between an i pad2 / macbook air or pro

    whats the difference between an i pad2 / macbook air or pro .im considering buying an ipad2 for school !!

    abraham from san antonio wrote:
    whats the difference between an i pad2 / macbook air or pro .im considering buying an ipad2 for school !!
    A iPad is a touchbased tablet, it has a poor Atom level dual core processor that can do some things, but not a whole lot. The storage isn't so great on them and it needs a computer to operate. Can only run software from the App Store.
    The MacBook Air is a lightweight laptop with a real keyboard, but limited other features like no cd/dvd drive, it's the best for ultimate portability and lightweight uses with good features. Can run a lot of third party software no problem.
    The MacBook Pro 13" is a mid range laptop with cd/dvd drive, but poor integrated graphics. (little 3D gaming)
    The MacBook Pro 2.0Ghz is slightly above that, it has both a integrated graphics and a dedicated graphics card with about the same performance. (not good for 3D gaming)
    The 2.2, 2.3 Ghz 15" and 17" MacBook Pro's are professional level laptops and 3D gamers machines with very powerful graphics cards, these are the crown jewel machines in Apple's lineup.

  • What the diff between Order Acquisition  with Order management?

    Hi,
    What's the diff between them in SAP, thanks!

    Hi,
    I think Order Acquisition use in module Material management. And Order management use in Sales and Distribution.
    Regards,

  • Whats the difference between these versions of photoshop?

    First of all to make things clear I want to mention this first that I lives in Pakistan and Adobe doesn't support my region so in order to buy the Adobe Photoshop CC I have to contact the authorized resellers, after contacting them and asking for a invoice proposal for Adobe Photoshop CC, they send me several invoice proposals (per user team liscense). But I just got in a trouble as these proposals are offering Photoshop CC different versions so its like kinda making me double mind, i am just confused which to buy as prices are differ too and kinda noticeable. As for making my intentions clear I also wanna mention that I am looking for Single App Liscense i mean i just wanna buy Photoshop CC thats it. But for sure its not gonna be that photography version nor student one. Also i wanna know that whats the difference between these two versions and also tell me the pros and cons.
    So please help me choose which one is better for me as I am really confused with it.
    Here are the links
    Note: You will have to translate these pages into english
    Link one:
    [65224660BA01A12] ราคาพิเศษ จำหน่าย Photoshop CC ALL Multiple Platforms Multi Asian Languages Licensing Subscription Mo…
    Link two:
    [65226001BA01A12] ราคาพิเศษ จำหน่าย Photoshop CC ALL Multiple Platforms Multi Asian Languages Licensing Subscription Mo…
    I've attached screenshots too

    The features in both of the Photoshop CC are identical, there is a difference in price because, the higher priced is the original Photoshop price, the less priced is the promotional priced Photoshop CC eligible only if you have CS3 or later version of Adobe creative suite product.
    Hope this answers your question.
    Regards
    Rajshree

  • Whats the diff between express and pro??

    Just wondering what the main diff between the two are. I've used pro at school, but cant afford to get it at home. Will i still be able to use the same audio instruments like the same synths and plug ins??? Also, would i be able to run the program on a mac mini (top of the line)?

    Matt Mac 63, "Whats the diff between express and pro??" #5, 10:33pm Oct 18, 2005 CDT
    All I was saying is that if a person can afford to get Pro, they definitely should. The difference in features adds up to at least the difference in price, if not very much more.
    Having said that, Express is good value compared to most other DAW software at that pricepoint, but it is only intended as a 'Lite' version.
    Some examples, off the top of my head, of differences not made really clear in the comparison list.
    Input Objects:
    In Pro you can use Input Objects to monitor incoming signal without rec-enabling a track. That doesn't sound much, on the face of it, but what it means is you can use external FX units (hardware) as inserts in tracks (or busses) just like plugins, and bounce them with the mix. it also means you acn monitor what you are playing into Logic Pro with plugin FX applied, but record dry so you can hear your guitar with the reverb, or whatever, but still have the recorded dry signal so you can change the FX settings later.
    Pro has some very handy environment objects. The main one being the Trabsformer object. But also another extremely useful object is TouchTracks.
    If you've ever played with Ableton Live you would have noticed you can triger clips with the keyboard in all different ways (loop, gate loop, one shot etc.) Well TouchTracks does that with MIDI regions.(I have a feeling that feature in Live was modeled after Logic's TouchTracks' as it is incredibly similar.)
    They are only a few examples of a whole range of differences. If all the differences were itemized in the 'comparison chart' it would be about 3 pages long.
    All I am saying is, don't take the comparison chart as the definitive list of differences.
    yes, Express is a good basic tool and you can do a lot with it, with some imagination.
    The SOS author's claim that:
    you're paying less than a third of the price of Logic Pro and getting over 90 percent of the functionality."
    is not true in totality.
    It may be true to someone who has never dabbled in audio software before, because it takes literally years to become fully conversant with every function in Logic Pro, and no-one uses absolutely everything.
    But for serious users, who have big demands, in my opinion, Express is less than 30% of Pro's functionality.

  • Can some1 xplain to me whats the relation between Java3D + NURBS + VRML ?

    hi & good day all.
    im new in java & java 3D.
    can someone please explain to me whats the relation between the of them?
    java3D + NURBS + VRML ?
    or maybe theres a good site that tells it all about their relation.
    please help.
    thank you.

    Hi,
    I don't know NURBS, but VRML is a language to describe 3D Models. With a VRML-Browser you display a 3D-World by using a quite small amount of data volume. The interactive possibilties of VRML are limited. So VRML is more a file-format.
    Java3D is an add-on for Java. So it's object based and has it's own API. Fortunately Java3D uses the a similar scenegraph structure like VRML for storing the 3D-data. For this reason, you can use a VRML-loader to work with your VRML model in Java3D (look here: http://www.j3d.org/utilities/loaders.html).
    Hope this helps a little bit,
    Andr�

Maybe you are looking for

  • How can I stay signed in to Hotmail on the web

    I am using an Ipad 4 and every time I close Safari and reopen It, I have to enter my username and password, and there is no box to tick to stay signed in.  I am more comfortable using hotmail through the web based platform rather than through the ema

  • Post calculation on database column in form

    I have a form created. for post calculation I convert text to upper case. upper(NAME); When I edit existing data in the form, and save the record. The data is converted to upper case. However when I create a new record and save it, everything is in l

  • How is the Basic Coverage amount calculated in IT0168 for Insurance plans?

    Hi All, I am in the process of configuring benefit plans for IT0168 -GB can anyone of you help me with the below? How is the basic coverage amount caluclated - can you please advise configuration for the same? Many thanks in advance. Regards, Anjali.

  • Bug in JMS adapter?

    Hi all, I'm struggling to integrate ESB JMS adapter with Weblogic. I'm able to produce message, however when I try to consume it seems ESB is not able to handle Weblogic JMSMessageID in format: ID:P<1212131.123123123123> SEVERE: Activity monitor mana

  • Bank Statement Problem

    Hi there, I have a client who is trying to enter in a manual Reconciliation for the bank and the selection criteria screen is showing a "last balance" of ZAR -164,093.14? I go to manage previous recons for that account and there is nothing there. Whe