How can I get the ASCII code instead of Unicode?

If I use getNumericValue to return the Unicode of a character, I found out "a" = "A". Is there any way I can find out the different code for capital letter and small letter? I'm thinking about ASCII code, any suggestion for which method to return the ASCII code?

That is not what getNumericValue does. (Try getNumericValue('*'), for example, and you will see it returns -1.) If you want to find the Unicode value of a character, simply cast the character to an int:char letter = 'A';
int unicodeValue = (int)letter;If the character you chose was in the ASCII character set, you will automatically have its ASCII code, because ASCII is simply the first 128 characters in the Unicode character set.

Similar Messages

  • How can i use the project code instead of project xml?

    hello
    i use the sessionbean+toplink structure,after i finish the o-r mapping by using the mapping work bench,i generate the project xml file,then in the "session.xml" file,i refer to the project xml,then i can use it from sessionbean.
    i hear that if i use the project code instead of project xml file,it will be more performant,is that true?
    otherwise,how can i use the project code instead of project xml file?i mean, in "session.xml", i can use the "<project-xml>" tag to refer to the project xml file,then in my session bean,i get the server session by read the "session.xml" file.but if i use the project code,how can i refer it from the "session.xml"?the examples that come with the toplink installation only tell me how can i use the project xml file within the session bean,it don't give me any clue about using the project code in the sesion bean,who can give me a step-by-step instruction and code snippet?
    thank you very much?

    There is a slight performance gain during session load at startup but there is no difference at runtime. The choice of which to use is dependent upon you build process. Whether it is easier to submit a new version of the class into the comile build process vs an XML file. In most cases it is just a preference of the development team.
    When you use the project-class you'll need to generate the source code and compile it into your system. Typically it is packaged with the persistent classes. You may need to configure your environment so that the class-loaders have access to these classes (same for the XML case).
    When using the project-class you simply replace the project-xml entry like this:
    <project-class>oracle.toplink.demos.employee.relational.EmployeeProject</project-class>
    The DTD for the session.xml file is found at <TOPLINK_HOME>\core\sessions_4_5.dtd. It is also in the documentation at:
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/toplink.903/b10064/a-sessio.htm#634246
    Doug Clarke
    Product Manager
    Oracle9iAS TopLink

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your repl

    How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your reply. Thanks!

    It's good to read Antoniad's post.  It reassures me that I can use my new iPad as an international communication device which is the reason I purchased the thing.  However, I called Verizon today (my provider of cellular data) who told me that I can't just pop in a SIM card as you suggested.  He also said that he was from the "Pre-Pay" division of Verizon and he was certain that I couldn't do what I planned to do.  I was extremely disappointed as I had called Apple prior to buying the iPad and I read the algorhythm on the website for choosing an iPad before purchasing.  Those sources were quite specific and the information seemed clear.  I would be able to use my iPad to communicate through cellular connections while traveling on the road, literally, abroad.  I was told that I could pop in a data card wherever I was, just as you indicated in your message above, and voila I was good to go.  The Verizon rep definitively rained on that parade, but said that I might be able to do this if I have a "Post-Pay" account, a different area of Verizon.  I haven't had the chance to talk to this division yet, so I looked to Apple's Support for answers.  Maybe I will find out that I can use my iPad as an international communication device while traveling on the road afterall, however, it appears I may need a different type of account (Post-Pay), something I was never warned about. Can I switch to this kind of account?  I don't know.  I have to find out.  If you have any information about this issue, it would be good to share since I strongly suspect there are others who bought the iPad for the same purpose that I have.

  • How can I get the HTML codes in illustrator?

    Hi, I am a graphic designer, and I am getting into the web world, I wanna know how can I get the HTML codes to upload a web design made using Illustrator,...¡?Does any one know?Please let me know...

    everyone here is right, dreamweaver is better and you will need to understand html for this to work. HOWEVER, you can make a functional website using just illustrator and notepad (or text edit if you're on a mac).
    Design your site in illy, slice it up with the slice tool. http://s23.postimg.org/mv311kpp7/test_illy.jpg 
    Save for web and select html and images, you'll get an html file and an images folder. Open the HTML file in your text editing program and it will look like this: http://s10.postimg.org/f32nf6r2h/html_stuff.jpg   you'll have to know HTML codes but you can find tutorials online for most stuff, you'll just have to figure it out. In my fake site, i linked a button to google so i had to add <a href> tags to the code. http://s22.postimg.org/5avpadhch/a_href.jpg  save the html file and open it in your web browser, hopefully not IE. You can't tell in the picture but the middle button actually does link to google. http://s21.postimg.org/qd77slqmf/firefox.jpg

  • I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    Your only choice is to place the phone in DFU mode (search Google for instructions) and restore as a new device.  You will lose all your data.

  • How can I get the PUK2 code on my C7-00

    My PIN2 CODE blocked.
    How can I get the PUK2 code?
    Thanks
    Solved!
    Go to Solution.

    Refer Pg. 122 / 123 of the User Guide

  • How can I get the source code of the google chrome ios app

    How can I get the source code of the google chrome ios app

    Google is your friend
    http://www.chromium.org/
    and
    https://developers.google.com/chrome/mobile/docs/iosoverview

  • How can I get the return code of SQL*Plus under Win2000Pro

    How can I get the return code of SQL*Plus under Win2000Pro ?

    In a DOS batch script? Try ECHO %ERRORLEVEL%
    -- CJ

  • How can I get the souce code of a labview vi .

    Hi
    How can I get the source code of a labviw vi.
    Mal

    The LabVIEW block diagram is the source code.
    It is compiled through the LabVIEW environment into a format suitable for running.
    It does not go through an interim conversion to another language before it gets compiled, so
    there is no other source code. The actual vi breaks down into 4 parts :
    Front panel
    Block diagram
    Code (diagram compiled to machine code)
    Data (control and indicator values, default data, diagram constant data, and so on)
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer

  • How can I get the connection code for the magic track pad?

    I want to use my magic trackpad and I scrapped the box with the connection code. How can I get it again? I don't need it for Mac, but yes for windows...

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can I get the verification codes for system updated

    I still can't get the verification codes to be sent to my mobile phone after I updated my system to ios 8.0 since yesterday

    Hello Slordan2012
    Log in to appleid.apple.com and resend the verification email to then verify the address. If you cannot get pass that, then you can always force the restore on your iPad and then enter in the password to bypass trying to turn it off.
    Apple ID: Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/he68
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Regards,
    -Norm G.

  • How can i get the tax code from Condition record number

    Hi all,
    i have the Condition record number from which i have to get the tax code as i looked inthe KNOP that Condition record number there but no tax code is maintained there.
    so is there any other way to find the tax code for particular Condition record number
    Regards
    suresh

    hi suresh,
    can u tell me the field name for condition record number and in which table it is stored.
    because i knew one condition number which is stored in table EKKO and the field name is
    KNUMV- Number of the document condition.
    from ekko take relevant details and look for  ekpo where u find the tax code
    filed name of the tax code id MWSKZ- Tax on sales/purchases code

  • How  can I get the employee code in the customer master

    Hi
    What are the settings that I do so that I can get the employee code in the customer master?
    We want to create a sales order on a employee , we have HR and SD in the same box.
    regards
    Pravin

    Hi
    I tried xd02 it asks me for the customer , ifi click the search icon it opens up the search where thre is a tab named "Customer by Personnel Numbeer" when i try to search it does not show any employees even thoughi havemanyhired in HR
    Please tell me  what i need to do
    regards
    Pravin

  • How can I get the PUK code for my SIM card?

    I had to do a factory reset this morning on my DROID RAZR. As I was going through this afternoon setting everything up again, I saw that I could set a password for my SIM card. I thought it was asking me to create a password, not enter a default one. So needless to say, I locked myself out of my phone, and I need the PUK code. I cannot call, this is my only phone, and I cannot go to a local store today or tomorrow. I also cannot go the next two days without my phone. I've tried doing a chat, but because it's only sales that communicate through the chat, they were less than helpful and told me I can only fix this by going to a store, which I can't do.
    So, can I chat with anyone to get my PUK code today via internet?

    Why is this working for everyone, but me? When I follow these instructions (and many others that I've found in this community -- which has been helpful with other matters thus far) There is no PUK or SIM information. I have an (ESN) and my phone number. that's it. Help! I'm in a rabbit hole!
    Many thanks for any support you can provide!

Maybe you are looking for

  • Reuse parameters in variables

    Hi, please can someone help me with this as I have been searching the forums for over an hour. There is some indication that the code Dreamweaver creates does not allow more than one recordset to use the same variable parameter, ie a URL parameter in

  • Query for Inactive customer becomes active

    Looking for query that will show me all customers that have started to purchase from us. ie.  who have not made a purchase for the past six months and then started up again. Any help is appreciated.

  • Multiple Encodes per Droplet

    Is it possible to create a Droplet that will transcode to several different codecs? I currently have several droplets setup for multiple distribution partners and would like to combine them into a single droplet if possible - i.e. drag and drop a QTD

  • Collaboration Room

    I am trying to create a room template which will have a quick poll iview and an poll administration ivew. I am using the standard iview provided under com.sap.ip.collaboration. In both the iviews the field "Campagin to be used" is "room". when i crea

  • Backup/Sync from Windows Drive

    Is there a way to get iPhone/iPad/iTunes to not backup/sync data from my phones/tablets to my Windows drive.  I use an ssd as my primary Windows drive, so naturally there isn't a lot of space there, and every time I back up a phone it completely fill