The different between Contain and equals

I not sure about the different between contain and equals if I want to know if the string have some character or not ?
thankyou

HJava wrote:
Thank you for all the reply,
I have if (myTYpe.substring(0).contains(""u") ) work
if if (myTYpe.substring(0).equals(""u") ) not work
so I post this question, may be I made other mistake
Thank youIf you wanted to see if the first character of the string was u then it is either
myTYpe.charAt(0) == 'u'or startWith("u") or matches("^u.*$") etc, etc, etc.
substring(0) will return the entire String, of course, which you would know if had actually looked at the API docs to find out what it did or even simply printed out the result to see what it did. Seemingly, however, you simply assumed you knew what it did and went on with that false assumption without bothering to even attempt to verify even though it was, already, not producing the results you expected. Instead, you focused on "the difference between contains and equals" which is self-evident in their names and obviously not the problem to begin with.

Similar Messages

  • What is the different between statement and preparedstatement?

    hi,
    recently i have attended a telephonic interview. they asked me what is the different between statement and preparedstatement? and when u will use them? Hi! can any one say me the original difference??

    sorry dear,
    i am already shortlisted. and monday is my HR round.
    . Every 1 is not like u.
    So you have read the examples and explanations that you found when you googled, and you have read the javadoc and you still don't understand? And you are shortlisted? For what? I hope you won't do server programming.
    I will give you a few hints.
    Escaping of data
    Storing of dates
    Safer
    Faster

  • What is the different between component and component type in extract struc

    Hi All,
    What is the different between component and component type in the Extract Structure?
    I used them, but I never really know the different between them yet.
    Thanks,
    Grace

    The difference between Component and Component Type are:
    Component This is essentially the field name in the extraction structure. These can either be SAP delivered field names or custom field names (e.g. Y* or Z*).
    Component Type This defines the data definition for the field, along with associated attrributes and descriptions for anything using that Component Type, to define the corresponding Component. If you double-click on any Component Type in an extraction structure, it will show you the definitions that have been setup for that Component Type (will display as Data Element but it's essentially synonymous - Component Type refers to structures and Data Elements refer to tables).

  • What's the different between cc and cs6?  I'm taking a course and cs6 is recommended, but I already have cc, will that be good enough?

    What's the different between cc and cs6?  I'm taking a course and cs6 is recommended, but I already have cc, will that be good enough?

    When I'm away from the desk, I never get the exact wording
    "Find new Apps > Filters and versions > select Previous Version"
    Then where you see the Install button next to Photoshop below that, click on that and you can select 13.0 CS6 for install.
    It's a good idea. CC 2014 has eliminated and added many features, and you want to be on the same page in that course.

  • What is the different between old and new succession planning?

    Hi
    I have worked a lot on succession planning in 4.6c. In ECC 6.0, the succession planning has shifted to e-recruitment section.
    1. What is the difference between succession planning in 4.6C and ECC 6.0
    2. Can I still use the old succession planning in ECC 6.0
    3. Is there a requirement to transfer data from old succession planning to new succession planning if we move to ECC 6.0?
    Thanks

    http://java.sun.com/overview.html
    I found that link in five seconds.

  • May i Now the Different between C549 and C542

    Hi All,
    I have a AS5300 with C542 chip, but the new one is C549. So i would like to know what the different? Will there be any effect when running with C542 chip for 4E1 voip?
    Thanks with regards
    Chan

    The following link should answer your question. http://www.cisco.com/warp/public/788/products/dsps.html

  • What's the different between ON_DEMAND and INCOMING_ONLY?

    The documentation says: "For ON_DEMAND, the local domain gateway continually advertises services imported from a remote domain." and "For INCOMING_ONLY, the local domain gateway advertises services imported from a remote domain when the gateway receives an incoming connection or when a dmadmin connect command is issued."
    I tried setting 2 domains: Domain 1 imports service TOLOWER from Domain 2 with ON_DEMAND connection policy. Domain 2 imports service TOUPPER from Domain 1 with INCOMING_ONLY connection policy.
    When I try:
    tmadmin
    psc
    I see TOLOWER as AVAIL in domain 1 and TOUPPER as AVAIL in domain 2 so I see no difference. I though I shouldn't see the TOUPPER service advertised in domain 2 but it's there so how does it really works?

    Hi,
    Did you check if the connection was up between the domains?  Regardless of the state of the connection, the domain gateway in domain 1 will advertise TOLOWER and if no connection is up when the service is called, the domain gateway will try to establish the connection.  If the connection succeeds, then the call will complete, otherwise the call will fail, but the service will still be advertised.  On domain 2, TOUPPER should only be advertised by the domain gateway if the connection is up.  You can use dmadmin to check the state of the connections, as well as manually try to connect or disconnect the connections.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • What is the different between  BW and R/3

    my question is:
    What is the mainly responsibility for ABAPer in a BW implementation project, just as in R/3 implementation project, the mainly responsibility for ABAPer may include data migration, interface, report, document development, uesr exit and enhancement and so on?
    I think ABAPer can use ABAP code for routines, customer exist variables in reporting, enhancement in extraction, transfer rules and update rules in BW, and besides that, are there others responsibilities?
    Thanks in advance!

    Hello,
    rsa7 shows the delta queue of a system with its datasource and the records of the delta to be sent by that datasource.
    So in r/3 rsa7 will show all the datasources that exist in r/3 and are to be sent to any other system with its delta records inside (sent to BW).
    In BW rsa7 will show all the datasources that exist in BW and are to be sent to antother BW system or sent to any destination inside the same BW system.
    Diogo.

  • What is the different between Aperture and Photoshop

    Are these comparable programs? Can I do everything in Aperture I can do in Photoshop? I am trying to decide whether of get Aperture 3 now or await PS CS5/
    TIA,
    Bill

    Bill,
    Both previous posters to your question have more experience than I with Aperture, so I won't comment a lot on that one (although I really like Aperture because it can be a one stop shop for the casual photographer who just wants to get the best shots organized, touched-up and perhaps posted to a web site or printed in a book or to paper).
    I am not positive of how the adjustment brushes really work (but they seem to utilize 'masking' - something found and used in PS a great deal for artistic reasons). This would be a similarity, although Aperture appears to do masking on the fly while the user applies brushed in edits, where Photoshop is (in many cases) a manual mask created on a layer above the image (this takes more time but offers a bit more control).
    I can tell you a few things about Photoshop:
    1 - You would use 'Bridge' to ingest and organize your image files (this is not nearly as competent as Aperture for organization, but it will work well for someone organizing, keywording and rating up to a few hundred images per folder).
    2 - You would be using the 'Adobe Camera Raw' plug-in to veiw and edit any RAW files you plan to work with in your photography (it is also capable of working with .jpg and .tiff files). All work done inside this plug-in is 'non-destructive' and is not applied to anything but the preview until you save it out as a supported image file type (Aperture does the same).
    3 - Photoshop allows editing above and beyond the RAW edits due to layers and the ability to manipulate pixels on each layer. It also has all the tools you might need to create graphics from scratch with pen tools, brushes, text tool, etc.
    So in summation, your RAW workflow in PS would be 'Bridge > Adobe Camera Raw > Photoshop', compared to Aperture's 'all-in'one' RAW workflow design.
    I can't say a lot due to NDA, but we are now allowed to confirm PS CS5 and I can say that the beta performs at least as well as the current release of PS CS4 on my Mac Pro.
    You might use the trial of Aperture to get a feel for the program and then (assuming there will be a trial version of PS CS5 released soon after full release) - you could try that for 30 days and make a decision.
    Good luck with whatever decision you make.
    Peace.

  • What is the different between WPUMFactory and UMFactory?

    Sorry but i am new in sap portals world and i need some help, somebody can help me?

    Hello Josean,
    UMFactory is a factory class using which you can play around with the IUser interface...at UME level. Example - extracting the User Profile details, the user groups, mapped systems, etc.
    As far as what I read, WPUMFactory is a class used to extract details of an user related to KM, like adding permissions to an user at a Km resource level, etc
    Warm Regards,
    Ritu

  • DIFFERANCES BETWEEN WS_UPLOAD AND GUI_UPLOAD??

    HELLO ALL,
             CAN SOMEONE TELL ME THE DIFFERANCES BETWEEN WS_UPLOAD AND GUI_UPLOAD????
    REGARDS,
    SEENU

    Hi Seenu,
    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
    Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
    Regards
    Naresh

  • What is the different between Sharepoint fast search service and Sql server fulltext search?

    HI ,
    I want to kow what is the different between Sharepoint fast search service and Sql server fulltext search?
    Or Can I abstract the Sharepoint fast search from the Sharepoint platform as a isolate component?
    Thank you.
    James

    They are very, very different beasts.
    Firstly FAST Search for SharePoint is the old name for the product and is only relevant for SharePoint 2010 not 2013. It got merged into the standard SharePoint search for the 2013 release.
    SharePoint search is aimed at providing a Bing or Google like experience for your intranet content, as well as providing some nifty features that are purely SharePoint releated along the way. That means it can crawl SharePoint content, file shares,
    outlook mailboxes, internal and external websites and probably fifty other different things if you really tried. Whilst i'm not an expert on SQL full text search I believe it's intended to provide a search feature for content held within SQL databases
    and tables.
    Can you run SharePoint purely for Search? Yes, definitely.

  • What is the different between payment methods Wire and EFT

    Hi All
    can anybody tell me What is the different between payment methods Wire and EFT ?
    Regards ;

    WIRE:
    Wire is transfer of amount due directly to the supplier's bank it is an electronic transfer of funds
    This mode of payment is used for international suppliers.
    It can be paid in foreign currency or USD.
    Wire payments are same day payments.
    EFT:
    EFT ensures funds transfer from one bank account to another using electronic links.
    Can be used to make payments into domestic banks (within US) in USD only.
    It is faster than check payments.
    Hope this helps.

  • How the implementation differs between BW and BI , Is BI takes more time fo

    Hi All,
    I would like to know difference between implemenation and time lines for MM as mentioned below.
    How the implementation differs between BW and BI , Is BI takes more time for implementing MM module  than on BW?
    Thanks in advanced. (Full points will be awarded)
    With Regards,
    PCR

    Hi Timo,
    Thanks for response!
    But as i read from the following url: http://docs.oracle.com/cd/E15051_01/apirefs.1111/e10653/oracle/jbo/ViewObject.html, the setQueryTimeOut(int timeOutMills), the timeOut is mentioned in milliseconds. Please correct me if I am wrong.
    and i have overriden the executeQuery() method in the View Object Impl class as shown below:
    public void executeQuery() {
    Map sessionScope = ADFContext.getCurrent().getSessionScope();
    sessionScope.put("MyQuery", this);
    try {
    super.executeQuery();
    } finally {
    sessionScope.remove("MyQuery");
    throw new JboException("Query Taking too long to respond");
    and in the JAVA class i am calling the above method like this:
    monitor.setQueryTimeOut(6);
    monitor.executeQuery();
    But the issue is:
    1. The above exception message is getting carried forward to other pages as well. I mean somewhere in the session/ADFContext this message is being saved and error comes up/pops up when i click on other tabs of the page. How do i clear this?
    2. The above exception message is coming for the first time but when i click the 'Submit' button second time, i am getting the results and also the message that 'Query is taking too long to respond'. This should not be the case, everytime it should show the same message as the timeout limit is less and the query should end without fetching the results.
    Kindly let me know how to resolve the above issues, any pointers will be helpful.
    Thanks in advance.
    Edited by: user9223904 on Nov 3, 2012 4:42 AM

  • Whats the different between regular strems and buffered streams?

    Hum , Hey.
    Whats the different between regular streams(un buffered) and buffered streams?
    When should I use buffered streams and when should I use buffered streams?
    Thanks in advance !

    Gonen wrote:
    CeciNEstPasUnProgrammeur wrote:
    Heck, I often asked myself that, too. If only there were any documentation for those classes one could read...
    The buffer allows the stream to read a whole chunk of data, even though your program requests it one byte at a time. Reading larger chunks from a file e.g. is much faster than trying to read single bytes. Especially considering that usually, a whole cluster is read and you'd discard all but one byte, and then repeat the same...so if the buffered is faster . why there is un buffered streams?Lots of reasons. Maybe you're sure you're going to send or receive all the data in one transaction, so you don't want to waste memory on another buffer. Maybe you're sending data to a device that requires real-time input, like a robotic arm.

Maybe you are looking for