Hello...this is my firt post...

i need your help in this one...im doing a palindrome program...
"application that reads in a five-digit integers and determines whether
or not it is a palindrome. if the number is not a five-digits long. displays
an error message dialog indicating the problem to the user.when
dismisses the error dialog, allow the user to enter new value. Using
GUI cotrols..."
thats it...thanks

You cna do the swing part on your own. I don't know any of that stuff.
import java.util.Scanner;
public class Caller
    private static final int PALINDROME_LENGTH = 5;
    public static void main(String args[])
        Scanner in = new Scanner( System.in );
        String userInput = "";
        do
            System.out.print( "Enter your palindrome of length "
                + PALINDROME_LENGTH + ": " );
            userInput = in.nextLine();
            if ( userInput.length() == PALINDROME_LENGTH )
                if ( isPalindrome( userInput ) )
                    System.out.println( "Your number " + userInput
                        + " is a palindrome" );
                else
                    System.out.println( "Your number " + userInput
                        + " is NOT a palindrome" );
            else
                System.out.println( "Invalid length" );
        while ( !userInput.equalsIgnoreCase( "exit" ) );
    private static boolean isPalindrome(String s)
        int halfLength = (PALINDROME_LENGTH - 1) / 2;
        char[] chars = s.toCharArray();
        for ( int i = 0; i < halfLength; i++ )
            if ( !(chars[i] == chars[PALINDROME_LENGTH - 1 - i]) )
                return false;
        return true;
}

Similar Messages

  • This is my first post and facing a big issue as a BASIS professional-

    Hello all,
    I have been recently bugged by a serious problem and that is *how to see or get the list of all the transactions executed by an user, at a particular date. I have tried SM21 and STAD but not getting the results as per as the expectations.
    Furthermore, STAD is not fetching any data for any user at that system. Well, I have tried SUIM also but to no avail. My system is ECC 6.0.
    This is my first post to this community and it would be of great help if my problem is solved.

    Hi,
    Please find the below links for SM19 and also if you search by Sm19 or security audit log there lot of information in SDN and help.sap.com or google.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c7/69bcb7f36611d3a6510000e835363f/frameset.htm
    SM19 Dynamic Configuration.
    Thanks & Regards,
    Sharath

  • I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!

    I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!
    It started after the major update to iOS 7.
    I can't believe that this is so hard to do. It's just not letting me. I can add a bookmark to the home screen just fine, just not in a bookmarks folder anywhere I try.
    I've used Apple products since 2001 and have always loved how intuitive they are. But the Safari browser since iOS 7 has been the worst I've experienced. At least right in the beginning after that update.
    I'd really appreciate any help that doesn't just tell me how it's suppose to work...I know that.
    My iPad 4 is not affected with the problem and works as it should.

    To delete, tap "Edit" (tap to enlarge image)

  • This is my first post. I would like to thank you all for all of the information you have posted on this forum. It has been most helpful to a Newbee. I have a MBP17 w/trackpad and click bar from '08. I need a bigger HD, how big can I go? THX

    This is my first post, but I have been following this forum for a while and you have all been very helpful in my MacEducation. I have a MBP17 10.6.8 w/6GB ram from '08. I need to upgrade my HD from 200GB. I would like to go as big as I can and would appreciate any experiance you've had. Could I go 750GB or 500 GB @ 7200 rpm.  Should I upgrade to Lion before I swap the drive out?  Thanks, Johnny

    Hi Johnny,
    Yes you can do the 750 or 500, 5400 or 7200. Just make sure it is 2.5" SATA and 12.5mm high or less (there is at least one HD out there that is 15mm high and will not work).
    Lion: I don't know that it matters much either way, just don't do them at the same time. That way, if there are issues, you have a much better chance of troubleshooting one major change instead of two.

  • Hello THIS IS RAZA I GOT A MACBOOK PRO I HAVE A PROBLEM. PROBLEM IS how to solve this problem i have uploaded in .... all the time few days later on i face this problem in safari..... anyone can help me please.....thanks Screen Shot 2015-03-21 at 10.

    Hello
    THIS IS RAZA
    I GOT A MACBOOK PRO
    I HAVE A PROBLEM. PROBLEM IS how to solve this problem i have uploaded in .... all the time few days later on i face this problem in safari..... anyone can help me please.....thanks

    This is a scam. Do not phone these people, at best they will charge you for unnecessary 'cleaning' and at worst they will gain access to your Mac and steal your data. You've probably managed to install some 'adware' which is producing this fake warning. 'Adwaremedic' should remove it and is safe to use - please see
    http://www.adwaremedic.com/index.php

  • You cannot use this transaction type to post to this asset Message no. AA83

    < MODERATOR:  Message locked.  Please post this message in the [Asset Accounting forum|SAP ERP Financials  - Asset Accounting;. >
    Hi,
    I am settling credit values [-ve values] from WBS to Asset Under Constructions Assets during CJ88 period settlement run.
    These assets belongs to Investment Measure. For few assets I am getting below error and
    You cannot use this transaction type to post to this asset
    Message no. AA834
    Diagnosis
    The transaction type entered belongs to transaction type group 15. According to the specifications for this transaction type group, posting with transactions types belonging to this group are only allowed in specific asset classes (for example, asset classes for assets under construction).
    The asset to which you are posting belongs to class XXXXX (chart of depreciation XXXX). You cannot post to this class using the transaction type you have entered.
    Procedure
    Check the asset number entered. You may want to allow posting with this transaction type group for the asset class of the asset.
    I know normally we do this way
    During charging
    Dr Exp  A/c WBS name
    Cr B.S A/c
    During settlement
    Cr Exp A/c WBS name
    Dr AuC GL A/c
    But we have situation that during settlement, we are doing reverse
    ie., Cr AuC GL A/c
          Dr Exp A/c WBS Name
    These expenses are through POs and no downpayments. The below error taking me to down payment accounts config but we dont have down payment scenario, can any one advise, thanks
    Regards,
    Sridhar

    Hi,
    Please check the SAP note 1091728 for this.
    Regards

  • You cannot use this transaction type to post to this asset Message no.AA834

    Hi,
    I am settling credit values -ve values from WBS to Asset Under Constructions Assets during CJ88 period settlement run.
    These assets belongs to Investment Measure. For few assets I am getting below error and
    You cannot use this transaction type to post to this asset
    Message no. AA834
    Diagnosis
    The transaction type entered belongs to transaction type group 15. According to the specifications for this transaction type group, posting with transactions types belonging to this group are only allowed in specific asset classes (for example, asset classes for assets under construction).
    The asset to which you are posting belongs to class XXXXX (chart of depreciation XXXX). You cannot post to this class using the transaction type you have entered.
    Procedure
    Check the asset number entered. You may want to allow posting with this transaction type group for the asset class of the asset.
    I know normally we do this way
    During charging
    Dr Exp A/c WBS name
    Cr B.S A/c
    During settlement
    Cr Exp A/c WBS name
    Dr AuC GL A/c
    But we have situation that during settlement, we are doing reverse
    ie., Cr AuC GL A/c
    Dr Exp A/c WBS Name
    These expenses are through POs and no downpayments. The below error taking me to down payment accounts config but we dont have down payment scenario, can any one advise, thanks
    Regards,
    Sridhar

    When you have an investment order/WBS create from there the AUC. You collect the cost on the AUC. Final you fill in the settlement rule the final asset in (from a normal asset class) and then you transfer the costs to the final asset.
    In the IO or WBS should be assigened a investment profile and the asset class AUC should be set-up correct
    Search on this forum for more information or read the SAP help

  • Asset Settlement You cannot use this transaction type to post to this asset

    Hi All,
    A CAPEX is created. An Asset is created. The asset is assigned to CAPEX under settlement rule. Out of several purchases made against the CAPEX, settlement for 2 months are carried out and the value of CAPEX was transferred to Asset.
    However, during the current month, while doing the settlement, the system is giving the following error :-
    "You cannot use this transaction type to post to this asset"
    Message no. AA 834
    The details diagnosis of the error message is
    "The transaction type entered belomgs to transaction type group 15. It has been specified for this transaction type group, that it is only allowed to post to asset classes for which it has been explicitly allowed (for example, the asset class for assets under construction). The asset to which you are posting belongs to class PM-501 (chart of depreciation DEIL). You cannot post to this asset class using the transaction type entered"
    Request to please let me know what could be the possible reasons for system giving such message adn how to rectify it.
    Regards
    Santosh

    Hi Santosh,
    I would suggest that you Check the <b>asset number</b> you entered. You may want to allow posting to this asset class using this transaction type group. If this is not the case, then, you may have to ask the business to reverse the initial posting causing this error and re-post with the correct transaction type that is allowed for this asset class.
    I hope the above helps.
    Do not forget to award the points please.
    Regards,
    Jacob

  • DO NOT REPLY this is a test post which will be deleted soon

    DO NOT REPLY this is a test post which will be deleted soon
    Mike Wang

    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Ask
    a question
    Allow time to reverse.

  • Hello this is the first time I have ever had a problem. I am trying to down load a movie and it keeps giving me error -50. I have signed out and back in and deleated the download and tryed again and still will not download.

    Hello this is the first time I have ever had a problem. I am trying to down load a movie and it keeps giving me error -50. I have signed out and back in and deleated the download and tryed again and still will not download.

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hi Winterwilly,
    Welcome to Apple Support Communities. 
    The article linked below answers your question of how to use QuickTime to record something on your MacBook Pro’s screen.
    QuickTime Player 10.x: Record your computer’s screen
    Cheers,
    -Jason

  • HT3523 hello, this is the error I get when I try to play a video QuickTime Player can't open "solea-antonio-walter.mov" because a required codec isn't available. Any idea what I need to do? thank you

    Hello,
    This is the error message I get when I try to watcha burnt dvd, can anyone tell me what I need to do?
    thank you
    QuickTime Player can't open "solea-antonio-walter.mov" because a required codec isn't available.

    Quicktime X is a great little piece of software. However, Quicktime X is very finicky on which codec/file format it can decode/play.
    Luckily, there are DOZENS of alternative video/media players and extensions available for the Mac. Some of them are even FREE. Some of the better FREE ones include...
    PERIAN (quicktime extension)
    http://www.macupdate.com/app/mac/22923/perian
    QUICKTIME 7.6.6
    http://support.apple.com/kb/DL923
    VLC Media Player
    http://www.macupdate.com/app/mac/5758/vlc-media-player
    NICEPLAYER
    http://www.macupdate.com/app/mac/15136/niceplayer
    ... And if none of those work, there is a possibility that, that video file may be corrupted.

  • CRM Webclient UI FAQ - Read this before answering or posting questions

    For more information on about the CRM Community please review:
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM+Community
    For answers to several CRM questions please check the CRM Wiki:
    https://wiki.sdn.sap.com/wiki/display/CRM
    The latest CRM weblogs can be found here:
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/weblogs/topic/89
    [CRM User Interface Guidelines|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/302d8152-002b-2b10-34bd-9ff3c712dd4b]
    CRM specifc forums
    CRM Functional
    CRM Technical
    CRM Technincal/Functional
    CRM Release Specifc

    How to ask good questions to get good answers
    /people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers
    A method of learning for CRM
    /people/stephen.johannes/blog/2009/05/12/how-to-answer-what-is-a-bdoc
    Our expectations for people posting here:
    I'm kindly asking everyone who asks a question or answers a question in this forum, to read the two blogs above at least one time before you make your next question/answer in this forum.
    I'm also going to ask you change your habits if you haven't done this aleady
    For people posting questions:
    1. Please search on your topic at least one time before posting in this forum or in the other approriate CRM forum. When you search do a "wide-open" back to all of time search. Easiest way is to search in the forum screen and then search again setting the time frame back to "all of time"
    2. Please look at the CRM wiki to see if the answer is there:
    https://wiki.sdn.sap.com/wiki/display/CRM
    3. If the person answering the question gives you wiki articles or url links to review, review those first before asking for followup.
    For people answering questions
    1a) If you know the question has already been answer or think so, reply with a link to the thread that you think answers the question. Tell the original poster to review the thread and offer to clarify any questions after they have reviewed it.
    1b) If you think the answer should be in wiki post the answer in the wiki and then post the wiki link as your answer to the original poster.
    2. If you see something that you know should be in FAQ, post in in the FAQ signup thread or on the CRM wiki.
    If you have feedback on this please post your comments below or contact me directly.
    Thank you,
    CRM Forum Moderators

  • CRM General FAQ - Read this before answering or posting questions

    For more information on about the CRM Community please review:
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM+Community
    For answers to several CRM questions please check the CRM Wiki:
    https://wiki.sdn.sap.com/wiki/display/CRM
    The latest CRM weblogs can be found here:
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/weblogs/topic/89
    CRM specifc forums
    CRM Functional
    CRM Technical
    CRM Technincal/Functional
    CRM Release Specifc

    How to ask good questions to get good answers
    /people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers
    A method of learning for CRM
    /people/stephen.johannes/blog/2009/05/12/how-to-answer-what-is-a-bdoc
    Our expectations for people posting here:
    I'm kindly asking everyone who asks a question or answers a question in this forum, to read the two blogs above at least one time before you make your next question/answer in this forum.
    I'm also going to ask you change your habits if you haven't done this aleady
    For people posting questions:
    1. Please search on your topic at least one time before posting in this forum or in the other approriate CRM forum. When you search do a "wide-open" back to all of time search. Easiest way is to search in the forum screen and then search again setting the time frame back to "all of time"
    2. Please look at the CRM wiki to see if the answer is there:
    https://wiki.sdn.sap.com/wiki/display/CRM
    3. If the person answering the question gives you wiki articles or url links to review, review those first before asking for followup.
    For people answering questions
    1a) If you know the question has already been answer or think so, reply with a link to the thread that you think answers the question. Tell the original poster to review the thread and offer to clarify any questions after they have reviewed it.
    1b) If you think the answer should be in wiki post the answer in the wiki and then post the wiki link as your answer to the original poster.
    2. If you see something that you know should be in FAQ, post in in the FAQ signup thread or on the CRM wiki.
    If you have feedback on this please post your comments below or contact me directly.
    Thank you,
    Stephen
    CRM Forum Moderator

  • AADSTS90056: This endpoint only accepts POST requests.

    I have a WAAD instance that is authorising requests from my API Management api's.
    Earlier today things were working fine (at least as far as getting the token), but now I keep getting "AADSTS90056: This endpoint only accepts POST requests." when I select "Authorization Code" in the dropdown within the console for one
    of my api's.
    The Authorization Server has a "Authorization request method" and GET is disabled and i can't seem to remove it - i also checked POST but cannot for the life of me get rid of GET which I assume is causing the above behaviour.
    Anyone have any ideas on how to resolve this?
    thanks,
    /steven

    Hi Steven,
    This error is from the AAD team. According to spec GET should work just fine:
    https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx
    When can you see this error? Does the modal window open? Are you able to see AAD login screen in the modal window? If yes, do you see the error before or after entering login and password? 
    I'd help if you can provide a few screenshots.
    Regards,
    Miao

Maybe you are looking for