Problem processing character by character

Okay, I'm not looking for anyone to do an entire method or anything, but I'm just wondering if anyone had any suggestions for a problem I'm having that involves inputting a string into a method that would then go through it character by character and process it... it's obvious what its supposed to do when you look at a sample input...
you'd input something like this :
"1+5*6/2-3"
just a straight left to right processing... no order of operations or anything. Any suggestions would be appreciated :) thanks!
Message was edited by:
OneWingdPhoenix

Look at the charAt() method.
String s = //whatever
for(int i=0; i<s.length(); i++)
     char c = s.charAt(i);
}

Similar Messages

  • Problem with character code NCR (example : cộng h�a x� hội)

    Dear
    I have problem with character code NCR when display this string "c&#7897;ng h�a x� h&#7897;i" on web page using JSF. I print out like this c & # 7897 ; ng h � a x � h & # 7897 ; i
    Thanks for help

    jverd wrote:
    A better approach would be to take a char rather than a String in that method, since it's a better model for what you're converting. A char would also let you use switch statement.I was going to say this as well but you beat me to it.
    @OP, you really should use char for this. You're unnecessarily taking each char, converting it to a string, and working with the single-character string. That's not very efficient.

  • I have tried to purchase Adobe Acrobat Professional XI this morning and payment (AED 1983.53) has been taken, I received a message stating there was/is a problem processing my order and that I should contact your customer service team in UAE.  Having trie

    I have tried to purchase Adobe Acrobat Professional XI this morning and payment (AED 1983.53) has been taken, I received a message stating there was/is a problem processing my order and that I should contact your customer service team in UAE.  Having tried this, I was met with a recorded message, in Arabic, and no options to speak to anyone.  I have found this process extremely frustrating and poor on your behalf.  Not providing any options to speak to an Adobe representative is equally annoying.  Please get back to me ASAP, as I need to use the product immediately.

    CS2 is very old and reached its "end of life" a while back.  So probably won't run on modern operating systems.  If you can still run it, you'll need to uninstall what you have and re-install with the download link below to activate it.
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Nancy O.

  • How do i purchase license for lightroom 5? When i tried to process payment, it says There was a problem processing your order, please contact our Customer Service team on 800 448 1642 for assistance.

    How do i purchase license for lightroom 5? When i tried to process payment, it says There was a problem processing your order, please contact our Customer Service team on 800 448 1642 for assistance.

    In this forum, we can't help with purchasing issues.
    My suggestion is to call that phone number.

  • There was a problem processing your order, please contact our Customer Service team for assistance.

    when i waned to buy and finished filling all the (*), i clicked on conifirm membership they worte this in a red color:
    There was a problem processing your order, please contact our Customer Service team for assistance.Middle East & North AfricaBahrain: 80081097Egypt: 08000000447Jordan/Kuwait/Lebanon/Qatar/Yemen: English +44 207 365 0735Jordan/Kuwait/Lebanon/Qatar/Yemen: Arabic/French +44 203 564 4145Oman: 80077173Saudi Arabia: 8008446638Tunisia, Morocco and Algeria: +33 157324642United Arab Emirates: 80004443085Commonthwealth of Independent States (CIS): +44 207 365 0735

    Asmaa,
    Other than using the suppport phone number, you may try a chat here:
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • When i waned to buy and finished filling all the (*), i clicked on conifirm membership they worte this in a red color:  There was a problem processing your order, please contact our Customer Service team for assistance.Middle East

    when i waned to buy and finished filling all the (*), i clicked on conifirm membership they worte this in a red color:
    There was a problem processing your order, please contact our Customer Service team for assistance.Middle East & North AfricaBahrain: 80081097Egypt: 08000000447Jordan/Kuwait/Lebanon/Qatar/Yemen: English +44 207 365 0735Jordan/Kuwait/Lebanon/Qatar/Yemen: Arabic/French +44 203 564 4145Oman: 80077173Saudi Arabia: 8008446638Tunisia, Morocco and Algeria: +33 157324642United Arab Emirates: 80004443085Commonthwealth of Independent States (CIS): +44 207 365 0735

    Verify that everything about your Adobe ID and your country and your credit card match exactly
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -wrong email https://forums.adobe.com/thread/1446019

  • I can't renew my plan. It always say"There was a problem processing your order, please contact our Customer Service team on 30714922 for assistance."

    I can't renew my plan. It always say"There was a problem processing your order, please contact our Customer Service team on 30714922 for assistance."
    I can't find my payment info and renew button. Please help me!

    In this forum, we can't help with purchasing issues.
    My suggestion is to call that phone number.

  • I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    "Some problem" is really not much information
    Some links that may help
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -ID support http://helpx.adobe.com/x-productkb/global/service-c1.html
    -wrong email https://forums.adobe.com/thread/1446019

  • What's the Point of the 'Report a Problem' Process?

    I tried out the 'report a problem' process for the first time, as I bought an app that basically didn't do anything it was supposed to.
    I tried to contact the app support via the link in iTunes, got nowhere, so I tried the recommended 'report a problem' process.
    This also was a complete waste of time, as all it does is generate a message from Apple saying 'we have noted your comment but we have no control over apps. Please seek advice through the support link in the app page in iTunes' or words to that effect.
    Complete waste of time and going round in circles.
    So, are we saying that, if the app support is ignoring any requests for a refund and Apple obviously don't want to know, there is no way to get any money back on apps that just don't do what they are supposed to?

    Sorry Ian, but Apple did not tell me that. I have never asked for a refund, because there is no apparent mechanism for doing so.
    I cannot see anything in the link you provided that is relevant to the issue in question.
    I am struggling to see why the situation with buying an app that is 'unfit for purpose' from the App Store is any different if I buy a pair of Levis from the Jeans Store that is 'unfit for purpose' because there is a leg missing.
    The shop will not wash their hands of it, and tell me to go and sue the manufacturing factory whose responsibility it is. They would give me a refund, as it is them that I have a contract with and not the manufacturers.
    That is basic Consumer Law - certainly in the UK.
    Someone who purchases from the App Store is buying from Apple, not the developer, and it is Apple that the consumer has the contract with. Simple as that.
    Even if what you were saying was correct, what mechanism is there for devs to give refunds? Have you tried to get any support for apps in the App Store? My experience is that most of the time, it is zero. Now, of course, we all say, 'oh well, it was only a pound or so', and move on, but it still begs the question.

  • HTTPService + SimpleEmailForm - Problem with character

    Problem with swedish character å, ä och ö in a
    simple form mail with flex, php and mySQL.
    Have tried to change this in flex - mySimpleFormMail.mxml:
    <?xml version="1.0" encoding="utf-8"?> to
    <?xml version="1.0" encoding="Latin1"?> and to
    <?xml version="1.0" encoding="iso-8859-1"?>
    Have also at the same time changed this in mail.php:
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" /> to
    <meta http-equiv="Content-Type" content="text/html;
    charset=Latin1" /> and to
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    The mySimpleFormail looks like this is this:
    From---------------------------------------
    Name----------------------------------------
    To------------------------------------------
    E-mail---------------------------------------
    Mesage---------------------------------------
    SEND (button)
    The e-mail generated from mySimpleFormail looks like this:
    From: Patrik Hällman
    Email Address: [email protected]
    To:
    Patrik Hällman
    Email Address: [email protected]
    Message:Now I´m testing with the swedish character -
    åä och ö.
    ...as you can see swedish character å, ä och ö
    is wrong displayed.
    Here is the result from <traceTarget>:
    [SWF] C:\AppServ\www\email \bin-debug\email_send4.swf - 910
    229 bytes after decompression
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer set
    destination to 'DefaultHTTP'.
    'direct_http_channel' channel endpoint set to http:
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer sending
    message 'AA84F829-98F0-E93F-D7AC-F732847CF6B2'
    'direct_http_channel' channel sending message:
    (mx.messaging.messages::HTTPRequestMessage)#0
    body = (Object)#1
    emailMessage = "Now I´m testing with the swedish
    character å, ä and ö."
    senderEmail = "[email protected]"
    senderName = "Patrik Hällman"
    sendToEmail = "[email protected]"
    sendToName = "Patrik Hällman"
    clientId = (null)
    contentType = "application/x-www-form-urlencoded"
    destination = "DefaultHTTP"
    headers = (Object)#2
    httpHeaders = (Object)#3
    messageId = "AA84F829-98F0-E93F-D7AC-F732847CF6B2"
    method = "POST"
    recordHeaders = false
    timestamp = 0
    timeToLive = 0
    url = "
    http://www.myhomesite.se/email/email.php"
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer connected.
    'AB8F6784-15FC-7BD4-D26D-F73192A7717F' producer acknowledge
    of 'AA84F829-98F0-E93F-D7AC-F732847CF6B2'.
    Decoding HTTPService response
    Processing HTTPService response message:
    (mx.messaging.messages::AcknowledgeMessage)#0
    body = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    </body>
    </html>
    clientId = "DirectHTTPChannel0"
    correlationId = "AA84F829-98F0-E93F-D7AC-F732847CF6B2"
    destination = ""
    headers = (Object)#1
    messageId = "5624FC90-E89E-2B47-92B9-F7328A8CB993"
    timestamp = 0
    timeToLive = 0
    This is catastrophic when you working with cms and databases.
    All help I can get from this forum is really appreciated.

    Well, using UNICODE for upload/download files I think is most suitable way. If in AL11 you don't see it being displayed correctly (odd characters appear), that doesn't necessary mean it has wrong encoding set. Maybe AL11 is using different decoding type by default. Normally storage of file on AS is not its final destination, right? You place it there i.e. for customer's job to read it back and send via email. So just make sure that downloading program uses same decoding you used for encoding (UTF-8). Then the characters in the output stream (i.e. frontend file, mail body) should be displayed correctly
    What I mean is don't worry how it is dispalyed in AL11, just ensure that after you download it, the characters are correctly decoded.
    PS: Make sure that you metion encoding type explicitly both for upload and download programs
    OPEN DATASET dset .... IN TEXT MODE ENCODING/DECODING UTF-8.
    Regards
    Marcin

  • Problem with character set - Reports 11.1.1.4

    Hi!
    I have a problem with Oracle Reports 11g regarding character set configuration. The default character set WE8ISO8859P1 works, so PDF reports have a regular display except for Eastern European (EE) letters which are replaced by "¿" sign.
    So, when I set any other character set in reports.sh, which would be a normal step to get EE letters, I'm always getting Greek Alphabet in PDF reports. Why Greek Alphabet?
    The character sets I tried to use are: EE8ISO8859P2, UTF8 and AL32UTF8.
    I changed uifont.ali and included PDF Subset with all four Arial font variants and, of course, I placed all fonts in fonts folder which is pointed by REPORTS_FONT_DIRECTORY.
    In Reports Builder everything works fine, but when I have to deploy the report to the Reports Services, the problem occurs.
    Also, when I've tried to execute PDF report using In-Process Reports Server (rep_wls_reports_hostnameasinst1) instead of AS Instance Reports Server (RptSvr_hostnameasinst1, which is a regular server), I'm getting Greek Alphabet in PDF reports even if the default character set is WE8ISO8859P1 in reports.sh. What is wrong with it? Where is Greek Alphabet configured?
    The production environment is 64-bit Oracle Linux 5.6 with Weblogic 10.3.4 and Forms&Reports 11.1.1.4. Forms works fine with character set EE8ISO8859P2 defined in default.env file.
    Thanks in advance!
    Regards,
    Dejan

    Thank you, Denis!
    Doc 300416.1 was very useful but Note 356221.1 - A Practical Methodology on Porting Reports from Windows to Unix with Different Font is actually crucial for configuring Reports on Linux.
    Also, there is a bug in 11.1.1.3 and 11.1.1.4, which can be fixed using the patch ( Note 1138405.1 - PDF Reports With Font Subsetting Raises Error "Bad /Bbox" on 64-Bit Linux ).
    Kind regards!

  • Problem with '&' character in xml

    Hello!
    i work with XI3.0 sp19
    i have a interface ftp ->XI-> idoc.
    ftp adapter send a xml file.
    I solve all problems with special characters using encoding="ISO-8859-9", but i have problem when in my message there are a '&' character.
    any idea?????

    This has been discussed lately:
    Ampersand ('&')  in  XML - Mapping error
    Regards
    Stefan

  • Problem with Character Set in Oracle database 10g

    Hi,
    I tried to import one tablespace into test server. Source server with Oracle 8i and Target server with Oracle database 10g. The error I get is
    Import: Release 10.2.0.1.0 - Production on Thu Aug 3 00:20:49 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Username: sys as sysdba
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V08.01.07 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in WE8DEC character set and AL16UTF16 NCHAR character set
    export server uses WE8DEC NCHAR character set (possible ncharset conversion)
    . importing SYS's objects into SYS
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 19736:
    "BEGIN sys.dbms_plugts.beginImport ('8.1.7.4.0',2,'2',NULL,'NULL',67051,25"
    "51,2); END;"
    IMP-00003: ORACLE error 19736 encountered
    ORA-19736: can not plug a tablespace into a database using a different national character set
    ORA-06512: at "SYS.DBMS_PLUGTS", line 2386
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1946
    ORA-06512: at line 1
    IMP-00000: Import terminated unsuccessfully
    PLZ somebody help in geting resolve this. Has anybody seen this error before.

    The solution to this problem is described in MetaLink note #211920.1. But this note is published with LIMITED access as it involves using a hidden parameter.
    You can get access to the note through Oracle Support only.
    The problem itself is solved generically, if the source database is at least 10.1.0.3 and the target database is 10.2
    -- Sergiusz

  • 'Ñ' Problem in Character Mode Report

    i made a report in Character Mode, using PRT.
    The problem is, when i generate report directly to the Dot Matrix Printer it didn't print the 'Ñ' character in my output, a corresponding ASCII character is printed instead. What could be the problem in my report or is it the printer???
    PLEASE HELP ME!!! I NEED YOUR FEEDBACK, THANKS IN ADVANCE!

    Hi..
    If you are directly giving Print from previewer..you need to set printer to 10 cpi (if you want bigger font) and 12 dpi to compress the larger font..
    CPI is character per inch so in one inch 10 chr or 12 chr can fir acc to setting.
    If you are uploading file on Oracle Apps then you need to set fonts if needed in concurrent manager,printer setting,Style,fonts ..
    "But the hardware setting is vewry imp..set the font in DRAFT mode"..
    tarak desai
    [email protected]

  • Problem in Character Mode Report (Urgent)

    Dear All
    i m designing a character mode report
    and when i preview it ,,, it will display
    different report font which is big in size
    and width so it is not fit in the designed columns
    can any one help me ,, y this problem is exist
    though i m using Dot matrix printer EPSON DFX-8500
    printer.

    Hi..
    If you are directly giving Print from previewer..you need to set printer to 10 cpi (if you want bigger font) and 12 dpi to compress the larger font..
    CPI is character per inch so in one inch 10 chr or 12 chr can fir acc to setting.
    If you are uploading file on Oracle Apps then you need to set fonts if needed in concurrent manager,printer setting,Style,fonts ..
    "But the hardware setting is vewry imp..set the font in DRAFT mode"..
    tarak desai
    [email protected]

Maybe you are looking for

  • I have a new Nano and I get a message that says the USB device is not recognized by my computer and I cannot set it up.

    I have a new IPod Nano and when trying to connect to my PC for the first time I get a fault message that says the "USB Device is not recognized by my computer. I have several other IPod devices and have never had this problem. When I go to windows ex

  • How to Handle RFC delivery exception (rfcClientException) in XI?

    I have a following scenario. I have an outbound soap interface (sender) and inbound RFC(receiver). When the soap message is posted it goes to receiver where it has to execute the RFC. It tries to convert the XML to RFC and throws the following except

  • Why does my Audition CC crash after I record something?

    Hello, I am currently making rap music using a Yeti pro USB by Blue microphones. Everytime I start up Audition everything goes fine until I record a verse over a beat, after I press stop I see the symbol when it is saving something over the file name

  • Lost Playlists - iTunes 6.0.5

    I have not upgraded to iTunes 7 due to all the problematic feedback on this forum. I will wait until some of the issues are resolved. I have been struggling with a continuing problem with iTunes 6.0.5 and my iPod mini. I have iTunes set up to automat

  • Initialize Visa Agilent N57

    I am trying to initialize a session to an Agilent N5764A. I keep getting an error code -1074001254 saying N5700 Write to Instrument -> Config Voltage Limit.vi -> N5700 Getting Strarted.vi -> Agilent 5700 Initialize.vi -> <ERR> Error sending N5700 Com