What is the equivalent to ||

I'm trying to put "or" between 2 strings.
If the user is asked to enter a month, they could type 10 or oct or october. so i want to display October, regardless of which one they choose to enter.
example: if (month.equalsIgnoreCase("October") || ("10") || ("Oct"))
System.out.println("October");
I can't use || here, is there anything I can put between them?

dank75 wrote:
I'm trying to put "or" between 2 strings.
If the user is asked to enter a month, they could type 10 or oct or october. so i want to display October, regardless of which one they choose to enter.
example: if (month.equalsIgnoreCase("October") || ("10") || ("Oct"))
System.out.println("October");
I can't use || here, is there anything I can put between them?
if (month.equalsIgnoreCase("October") || month.equals("10") || month.equalsIgnoreCase("Oct")) {
}But, why not let the user choose from a drop-down menu? This is very error-prone. What if the user enters: "Octobr"?

Similar Messages

  • What is the equivalent selection in BI7? (Following BW 3.5 How to...Set up

    Hi,
    What is the equivalent selection in BI7? (Following BW 3.5 How to...Set up BW Statistics)
    I am trying to install BW statistics and all the good things that come with it for BI7. Following the instructions in a document that I was directed to on this site, in SBIW, I installed and replicated all the datasource in under “TCT” tree (Technical content)
    The instruction is for versions prior to BI7 and I had to make modifications as I go.
    Now, this instruction direct me to go to:
    rsa1, “Bi Content” (left) and then “InfoProviders by InfoAreas” and select all InfoProviders for the InfoAreas ”BW Statistics” and “BW Metadata” under the node “Technical Content”.
    1.
    In BI7, there is no ”BW Statistics” and “BW Metadata” infoareas under “Technical Content” if I follow the directions strictly.
    What is the equivalent of this in BI7?
    2.
    In the instructions, the author continues to collect these InfoAreas from under “Technical Content”:
    BW Data Slice
    BW Features characteristics
    BW Metadata
    BW Statistics
    In BI7, do we need exactly these? Or, now different? Should I just transfer all the infoareas under “Technical Content”? What is the disadvantage of collecting a ALL?
    Thanks

    Thanks for the link and i believe it will come in handing.
    Yet, it does not have the step by step installation information on page 46 of this link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    Do you have the BI7 version of this link?
    Also, ssame stewise info is on page 4 of this:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5401ab90-0201-0010-b394-99ffdb15235b   
    If you have the BI7 version of this link also, it will answer my question.
    Thanks

  • What is the equivalent for 'On Change of' Event in ABAP OBJECTS?

    What is the equivalent for 'On Change of' Event in ABAP OBJECTS?  and how to use it in LOOP control?

    hi,
    There is no such Equivalent in OO ABAP.
    You have to Raise your own Event within tha class checking the value of the field whose value is changing.
    Regards
    Sumit Agarwal

  • What is the equivalent function of this...

    the following codes are in awt form, what are the equivalent swt form of the following function? thank you for your help
    ActionListener listener = new MenuItemActionListener(panel);
    *MenuItemActionListener(panel); is the awt
    Component parent; (Component is the awt)
    and using Color.<what_color>
    Again thank you!

    if you're planning on coming here getting the forum to re-write all your awt code in swt bit by bit, forget it. as far as I know, there's only 2 or 3 people who post here that know swt, and nobody's in the business of rewriting code on other people's behalf anyway. the swt documentation that comes with eclipse, plus the javadocs for swt, are more than good enough for you to manage this

  • What is the equivalent subtype of 'Text'?

    Hi experts,
    i have created one field using 'user defined field-management' menu with "type alphanumeric and structure text". now i want to create that field by code. so, i have selected oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha but the option for subtype "text" is not coming in intellisense.
    so, what is the equivalent subtype for structure "text".
    Thanking
    Vishwajit Kumar

    It's actually a strange one - it's not a subtype in the DI for some reason, it appears as a main type under "Memo"
    oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Memo
    That will get you what you require it will appear in B1 as type alphanumeric and subtype text! Like I said, it's a weird one

  • What is the Equivalent tool of CHDBPASS in NetWeaver 7

    I want to change the password of SYSTEM  and SYS in NetWeaver 7. What is the Equivalent tool of CHDBPASS in NetWeaver 7
    Edited by: Sebastian Sebaraj on Apr 3, 2008 3:34 PM

    Hai,
    For the SAP BASIS >= Release 6.10:
    Use the oradbusr.sql script. This script is attached to the note 50088. The script is valid for Oracle and Unix. Use the following syntax
               sqlplus /NOLOG @oradbusr. sql SCHEMAOWNER UNIX SAP_SID x
    The SCHEMAOWNER is either SAPR3 or has to start with SAP followed by the three digit schema id (example: SAPPRD).
    On Unix x is a dummy parameter and may e. g. be set to  X.
    To change the password for the SAPR3 or SAP<SID> user you have to use the following command:
               brconnect -u system/<syst_pwd> -f chpass -o SAPR3 -p <new_sap_pwd>
    or
               brconnect -u system/<syst_pwd> -f chpass -o sap< sid> -p <new_sap_pwd>
    Thanks and Regards,

  • Help! what is the equivalent focal length of ipad 4 camera?

    what is the equivalent focal length of ipad 4 camera?

    Your apps is not providing enough information.
    I use ExifWizPro App.
    http://i1224.photobucket.com/albums/ee374/Diavonex/51b4d31dae7f841332878c77bfe13 9f1_zpscc0bd8a4.jpg

  • What's the equivalent of Windows' Alt+F in OSX?

    Hi all,
    Noob questions... What's the equivalent of Alt+F (too choose the File menu) in OS X?
    -Al

    Hello again Al,
    Simple answer is:
    *Control+F2 then F-key*
    (or *control+F2 then FI* if there is another menu beginning with an F)
    Enable (keep it permanently enabled) Full Keyboard Access by hitting control+F1.
    Now you can use all control+F commands listed in
    System Preferences > Keyboard & Mouse > Keyboard Shortcuts
    In your "alt+F" equivalent example, here's what you would do:
    Control+F2 then Arrow (left or right) then Arrow Down,
    and you can also type the first letter(s) of a command's name:
    Example in Safari, File menu:
    hit "P" to get "Page Setup"
    or
    hit "PR" to get "Print"
    Return key commands the action itself once you've reached it.
    Axel

  • What's the equivalent of Choice() in Swing

    What's the equivalent of java.awt.Choice() in javax.swing?
    I've been stuck on that one for a while.
    Thank you

    Here is a link showing all the Swing components:
    http://java.sun.com/docs/books/tutorial/uiswing/components/components.html
    Take some time to go through the Table of Contents as well. Its a great introduction to Swing.

  • What is the equivalent Windows laptop?

    What's the best Windows laptop equivalent to the MBP 15.4"? My vote goes to the Thinkpad T60p.

    sigh
    He asked what's the equivalent. When people ask for the "equivalent", they mean comparable hardware at a similar price. Most techies (who are what Apple's trying to court right now) will want to see similar specs, maybe compare weights, size, etc. We don't really care about immeasurable things like "design" and relatively useless stuff like the "patent pending magnetic power connector" (I have never, ever tripped over my laptops' wires. Neither has my family. And over the course of the last 10 years I've owned 6 laptops).
    As for trying to compare, if you honestly don't know what you're talking about, please don't speak. Dual Athlons are not the equivalent of an Intel Core Duo. Dual Athlons are a lot faster and guzzle tremendous amounts of energy. If you want to make a valid comparison, look at the Inspiron 9300 with Core Duo and a similar video card.
    Please don't let the reality distortion field and marketingspeak affect what you say to others. This is a big year for Apple to court us geeks, and we really, REALLY don't like the reality distortion field and marketingspeak. Just give us specs and benchmarks. Thanks.

  • What is the equivalent app on an iPad for QuickTime on an iMac?

    I've created several videos using iVideo on an iMac that are in the .mov format and which are played using QuickTime.
    I would like to play them on an iPad. I have iMovie installed. Is that the equivalent of QuickTime for playback? But how do I access the videos on the iMac? I'm using a direct USB connection, but I don't find the tools on the iPad to access the iMac videos. I'm synchronizing data, but videos don't seem to be an option. Do I have to do it via iTunes? or iCloud? or what?
    Thank you.
    George

    Hello George,
        There are a few ways you can do this, depending how and where you saved your finished move, connect your iPad to your computer, open iTunes and select your iPad in the side bar under Devices.
         Once selected you will see tabs for all of your content on top, select Movies then you can select the movies you want to sync. You can then sync all your movies or select only the ones you want.
         If there are no movies, look at you sidebar select Movies under Library and you can either Add to Library, iTunes-File-Add to Library ( Command O ) or you can drag and drop them in there.
        To add then form iMovie,when your finished editing,  select Share - iTunes.
        In short, put them in iTunes. That is what I do, and it works find.
        Hope that helps

  • What is the equivalent Shift-Z ?

    I read in the book that to make the entire sequence fit into the timeline window, I do Shift-Z.
    If I forget the Shift-Z, where & what do I have to click to have the equivalent command ?
    Thanks

    View>Level>Fit to Window.

  • Newbie: what is the equivalent of passing request parameters?

    Hi-
    I am new to JSF. I have read many tutorials and articles. I still don't get one concept about passing parameters. Note: I don't want to store stuff in the session unless I have to.
    Let's say I have a page with a list of users. I layout the page with a panelGrid. Each row of the table has the first and last name of the user. If a user clicks on the name of a user on the user list, it should go to the user profile page. The backing bean for the user list page will be the UserListBean. It has a method called getUsers() that returns a List of User objects.
    For the View User page, I have a ViewUserBean. The ViewUserBean retrieve the entire profile for that user.
    How do I pass the user ID to the ViewUserBean? In struts, I would pass it as a request parameter (I would manually write the link URL with the userID). I know I can use the request like that in JSF, but that seems ugly. I looked at the code of the J2EE bookstore tutorial and it does a funky thing with all sorts of data stored in the session.
    What is the best way to request a page and "pass in" a userID?
    Thanks for your help.
    Adam

    I have a case on my current project very similar to your case. What you want, very simply, is an easy way to allow faces to handle URLs like http://www.domain.com/showUserDetails?userId=50
    The natural trouble is that when loading the page, there is no action to use to prefetch the User object based on the Request Parameters in JSF.
    All the solutions above either rely on the session or they are exceedingly complex. This case is actually very easy to do and is very straight forward using Managed Properties and a Request Scope bean...
    Here is the rather straight forward solution I used...
    First, make a "ShowUserDetailsBean" which represents the "logic" for this page.
    public class ShowUserDetailsBean
        /** Will point to the actual user service after dependency injection*/
        private UserService userService;
        /** Will hold the userId from the HTTP Request Parameters*/
        private String userId;
        /** Will hold a lazy loaded copy of the User object matching userId*/
        private User user;
        public void setUserService(UserService userService) {
            this.userService = userService;  //dependecy injection
        public void setUserId(String userId) {
           this.userId = userId;  //dependency injection
        /** Lazy loads the User object matching the UserId */
        public User getUser() {
            //Trap the case where the URL has no userId
            if (userId == null) return null;
            if (user == null) {
                user = userService.getUser(userId);  //Lazy Load
            return user;
    }Next, configure the managed properties in faces-config.xml
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
      <managed-bean>
        <managed-bean-name>userService</managed-bean-name>
        <managed-bean-class>foo.UserServiceImpl</managed-bean-class>
        <managed-bean-scope>application</managed-bean-scope>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>showUserDetails</managed-bean-name>
        <managed-bean-class>foo.ShowUserDetailsBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>userService</property-name>
          <property-class>foo.UserService</property-class>
          <value>#{userService}</value>
        </managed-property>
        <managed-property>
          <property-name>userId</property-name>
          <property-class>java.lang.String</property-class>
          <value>#{param.userId}</value>
        </managed-property>
      </managed-bean>Finally, you just make your webpage as you normally would...
    <h:outputText value="#{showUserDetails.user.userId}"/>
    <h:outputText value="#{showUserDetails.user.firstName}"/>
    <h:outputText value="#{showUserDetails.user.lastName}"/>
    Now you're ready to test, so you visit the page
    http://www.domain.com/showUserDetails?userId=50
    And your user details with userId=50 appears!
    It's just that simple!
    Regards,
    Doug
    Caveat: I haven't added any sample logic to handle cases where you visit:
    http://www.domain.com/showUserDetails
    without specifying a userId. I suggest you add some basic logic to your page to handle this case more gracefully.

  • What is the equivalent function of NIDAQYield in NI-DAQmx?

    I have to migrate from traditional NI-DAQ to NI-DAQmx for Window 7 64bits system.  I like to find the equivalent function of NIDAQYield in NI-DAQmx?

    As far as I can see here, NIDAQYield is simply a way to process system events, so I suppose calling ProcessSystemEvents () will be equivalent to calling it.I do not know of a native DAQmx function that does the same. It is to be said, though, that DAQmx way of handling acquisition process is different from Traditional DAQ one and direct translation is not always possible, so depending on how you migrate your code, calling those functions may be unnecessary.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • What is the equivalent table of SMOMARM in CRM

    Hi
    Would you please tell me the equivalent CRM table forSMOMARM which holds all the unit of measure conversion for products or any function module which I can use to get the conversion factors for products.
    Regards
    Javed

    I got the table name as COMM_PR_UNIT

Maybe you are looking for

  • The games apps in my IPAD2 won't open and i can't even download it says regarding my id...what is wrong with my IPAD

    i am having problem with my IPAD2...i can't open the games or the apps i've downloaded here...what is wrong and what shall i do so i can open it again because some of my games here are paid apps...please help me...thanks and GOD bless.

  • Error installing Adobe Download Assistant on Mac Yosemite 10.10

    I am trying to install trial of elements 13 on Mac Yosemite and getting the following error while installing the Adobe Download Assistant - This application cannot be installed because the installer has been misconfigured. Please contact the applicat

  • Javamail deadlock : Please help

    Please help me. I have searched everywhere in this forum but I got no answer to my problem so I have decided to make a new post. I have been getting this error for a 8days now. I am trying to send an email using Javamail API but Transport.send() and(

  • Chart builder grid lines

    hello all, I'm building a graph between 23/2/2005 and 08/03/2005. my problem is that I get only one grid line in 01/03/2005 and I need grid lines to every day. tnxs for your help, shai

  • Desktop Sync stopped working now - help please!!

    Hi, This looks a great Forum and I am looking forward to learning & contributing. I have a problem now Syncing my Curve with Outlook which has worked fine for the first month. Suddenly, Sync in Desktop Manager fails to work with both of our two 8900'