Converting Capital Letters to Small Letters issue

Half of this program works, meaning it does convert capital letters to small, but then when the letter is already small in the array as shown in the array list, I am having problems printing that out...I am confused.
public class TesingEx3
     public static void main(String[] args)
          char[] arrayLetters = {'A', 'B', 'c', 'D', 'e', 'f', 'G', 'H'};
          // 65 = A, 90 = Z, 97 = a, 122 = z 
          for (int index = 0; index < arrayLetters.length; index++)
               if (arrayLetters[index] >= 65 || arrayLetters[index] <= 70)
                    int letter = arrayLetters[index] + 32;
                    char convertLetter = (char) letter;
                    System.out.print(convertLetter);
                    System.out.println();
               else
                    System.out.print(arrayLetters[index]);
               and then here is my OUTPUT:
----jGRASP exec: java TesingEx3
a
b
d
g
h
----jGRASP: operation complete.

ravindra.alld wrote:
why we make String when we do it with the help of int or byte.
this is more memory efficient.When memory efficiency becomes a legitimate concern, we'll consider it. Until then, the choice is between using a method whose name says exactly what we're trying to accomplish, or treating characters as if they were numbers and doing arithmetic on them with the aid of magic numbers. Let the simple stuff be simple, and save your ingenuity for the hard stuff.

Similar Messages

  • How to convert capital letters to non-capital letters?

    Does anyone know how to do this? Currently, I have a small Widget in Dashboard that I found that does this perfectly, however, its too annoying to have to convert it and then copy & paste it into a Text application (ie. Page or Word).
    I was hoping, no let me rephrase, dreaming that Pages could do so, but I don't think it does; so I was hoping someone can tell me if they know of any programs that I can use that does just that.
    Some great features that I would like, but not necessary, is:
    1) that it allows you to export directly into any applicaiton (ie, Pages or Word)
    2) the ability to convert from non-capital letters (sentences, paragraphs and even pages in bulk) to capital letters.
    Anyone? I would appreciate any feedback, good or bad. Thanks!

    Hi DennisG
    This initially seemed odd to me too.
    I think it is because Pages retains the original Unicode character and regards capitalization as a formatting change - not a change to the character code itself. To illustrate, type the sentence "Dinner is booked for Dennis and Ian on Friday afternoon at 1pm." into Pages. You will notice that as you toggle between All Caps and None for the Capitalization setting, the appropriate case is preserved for things like proper nouns and the start of the sentence. Not a big deal for one sentence but imagine you had hundreds or thousands of sentences that you wanted in the same style and wished to experiment with presenting them in capitals!
    Pages isn't alone in doing this. Microsoft Word on Windows behaves the same way if you select the All caps check box in the Font dialog. Word provides a separate Change Case ... menu option that seems to permanently convert the actual characters instead of their appearance.
    I think it would be useful for Pages to have a similar feature and suggest that Vito submits feedback in the normal manner.
    iMac 17" Flat Panel (OS X 10.4.8)    

  • Capital letters issue with 'like'

    Hello
    Maybe it is simple but I cant find solution for this.
    For example I have table pets with column name
    "name" | "category"
    1. Tomcat | cat
    2. tomy | cat
    3. toM | cat
    4. tim | cat
    5. tOmi | cat
    query
    select name from pets where name like '%to%'
    results will give me
    2. tomy
    3. toM
    but i want as results all names wit 'to' no matter if it has capital letters or not
    1. Tomcat
    2. tomy
    3. toM
    5. tOmi
    How should i write this query ?
    please help

    Hi,
    Salski wrote:
    but I also have to remember to convert entered string in inputtext to uppercase as well
    someString.toUpperCase()You can also do that on the back-end, if that's better for you:
    select  name
    from    pets
    where   UPPER (name) like '%' || UPPER (someString) || '%'
    Thanks all for respondGlad to help!

  • Converting small letters in to Capital letters

    Hi
    I have a scenario where the input is in small letters and i wanna convert in to capital letters befor sending it to BAPI .. as BAPI accepts Capital letters as input ...
    any idea how we do that...
      SV

    Hi,
    In Text Function  you can find LowerCase-Converts all upper case letters in I to lower case letters  &
    toUpperCase- Converts all lower case letters in I to upper case letters
    Regards
    Agasthuri Doss

  • Changing the small letters to capital letters

    Hai,
    Experts,
      I retrieved the data from ADRC table into the Smartform. Then it displayed the data in small letters. How should i Change that Data in Capital letters.
    Thanks & Regards,
    Rathnam.

    Hi..
    use translate stmt..
    <b>translate <fld > to UPPERCASE</b>.
    The TRANSLATE statement converts characters into upper or lower case, or uses substitution rules to convert all occurrences of one character to another character.
    Converting to Upper or Lower Case
    TRANSLATE <c> TO UPPER CASE.
    TRANSLATE <c> TO LOWER CASE.
    These statements convert all lower case letters in the field <c> to upper case or vice versa.
    Substituting Characters
    TRANSLATE <c> USING <r>.
    This statement replaces all characters in field <c> according to the substitution rule stored in field <r> . <r> contains pairs of letters, where the first letter of each pair is replaced by the second letter. <r> can be a variable.
    For more variants of the TRANSLATE statement with more complex substitution rules, see the keyword documentation in the ABAP Editor.
    DATA: T(10) VALUE 'AbCdEfGhIj',
    STRING LIKE T,
    RULE(20) VALUE 'AxbXCydYEzfZ'.
    STRING = T.
    WRITE STRING.
    TRANSLATE STRING TO UPPER CASE.
    WRITE / STRING.
    STRING = T.
    TRANSLATE STRING TO LOWER CASE.
    WRITE / STRING.
    STRING = T.
    TRANSLATE STRING USING RULE.
    WRITE / STRING.

  • Abap code with relevant capital lettres and small letters

    Hi all,
    i wrote my code in capital letters and i want to change tables and data objects and other stuff into small letters .Is there any option in abap editor to change the code  as per the SAP standards.
    Thanks,
    Madhu

    Hi,
    You can use pretty printer..
    In SE38 choose..Utilities -> settings
    In the prettry printer tab..
    Check Indent..
    Check Keyword upper case..
    Press enter..
    Now go to your code in change mode..
    Press the pretty printer button in the application toolbar..
    Thanks,
    Naren

  • Changing the uppercase (capital) to lowercase (small) letters

    I have a J4680 all in one and I need to be able to changing the uppercase (capital) to lowercase (small) letters when using keyboard in order to properly enter my password when setting up wireles connection. Does anybody know how changing the uppercase (capital) to lowercase (small) letters?
    This question was solved.
    View Solution.

    Sorry that you are having a problem switching from upper and lower case letter for wireless connection. 
    When the keyboard appears on the printer display, there should be a ARROW pointing up or a TRIANGLE. Press that, and the entire keyboard changes into CAPS.
    If you do not have the KEYBOARD, and you have the NUMBERS and LETTERS buttons, you continue press the button until CAPS appear. 
    For example, (1, abc,), when pressing the number 1, it shows, A, then B, then C, then 1. After 1, the letters should automatically changed into capital A, B, and C. 
    Let me know if this helps, or if I confused you. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Small letters -capital letters change in Flash CS5

    hi,
    How to change the small letters to capital letters in flashCS5. Please any one tell the solution.
    thgs,

    you might have to explain exactly what you are trying a bit more
    you can use the String's toUpperCase() function.
    so if you have a textfield for example
    myTextField.text = myTextField.text.toUpperCase();
    if you want to force small letters to capitals as a user types in a textfield then you would need to add an event listener listening for teh change event and use the above code.
    if you are after something else explain in more detail please

  • Script to replace small caps that are typed as capital letters with non-capital letters (A = a, B = b, etc...)

    I'm looking for a way to replace small caps that are typed as capitals by their normal equivalent.
    I've got a text that contains a lot of names which should all be set in small caps.
    In fact they are, but because capital letters are used for first letters they don't scale.
    Short: I would like to be able to look for A, B, C... (in small caps) and replace them with (a, b, c...) in small caps in one go.
    (compare two arrays?? -> is this possible in indesign scripting)

    Hi,
    Actually, it works only with OpenType fonts and - in this case - can be managed by UI find...change feature.
    With other type of font we need a real change of contents (another keyboard hit).
    It could be done with this code (activeDocument is a target):
    -- works for Open Type as well --
    // For Latin Basic (ASCII from 65 to 90)
    // changes a "cap" letter to a "small" letter
    // if Capitalization.SMALL_CAPS is applied to
    app.findGrepPreferences = app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\u";
    app.findGrepPreferences.capitalization = Capitalization.SMALL_CAPS;
    var
      mSTART = 65, // ASCII number for "A"
      Mstart = 97, // ASCII number for "a"
      mDiff = 0,
      mTarget = app.activeDocument,
      mFound = mTarget.findGrep(),
      len = mFound.length, cString;
    while (len-->0) {
      cString = mFound[len].contents;
      mDiff = cString.charCodeAt(0) - mSTART;
      if (mDiff > -1 && mDiff < 26)
      mFound[len].contents = String.fromCharCode( Mstart + mDiff );
    app.findGrepPreferences = app.findGrepPreferences = null;
    Jarek

  • Issue with capital letters

    Hi folks!
    I usually make translations of video materials in my language (italian), so I usually open Word for Mac and Quick Time Pro together.
    Since I write these translations in capital letters, to make them easier to read by voice talents, I noticed that, in last Quick Time updates, with caps Lock inserted the transport keys J, K, L don't work, and the keys I and O (to loop a sequence) either.
    Have you ever heard about it?
    Is anybody able to suggest a work-out?
    Thanx in advance!

    Not really a workaround or a solution, but two things to consider...
    1) DOING SCRIPTS IN ALL CAPS IS AN ARCHAIC PRACTICE WHICH DATES BACK TO THE STONE AGES WHEN THE ONLY WAY TO GET LARGE TEXT WAS TO USE A PRIMARY TYPEWRITER WHICH WAS INCAPABLE OF PRODUCING LOWER CASE TEXT. I STILL DO NOT UNDERSTAND WHY MIXED CASE IN A LARGE FONT SIZE, WHICH IS ACTUALLY MUCH EASIER TO READ THAN ALL-CAPS, HAS STILL NOT BECOME THE WORLDWIDE STANDARD. THIS PARAGRAPH IS IN CAPS NOT BECAUSE I AM TRYING TO SHOUT, WHICH IS THE USUAL INTERPRETATION ON THE INTERNET, BUT TO DEMONSTRATE A POINT: READING THIS PARAGRAPH IS ACTUALLY MADE MORE DIFFICULT BECAUSE OF THE CAPS AS THEY OBSCURE THE SYMBOLS, THE SENTENCE ENDINGS, AND ANY OTHER METHODS WHICH MIGHT BE USEFUL FOR EMPHASIS.
    THAT SAID, IT MAY NOT REALLY BE YOUR CHOICE. OBVIOUSLY YOU HAVE TO LIVE WITH WHATEVER STANDARDS ARE ESTABLISHED BY YOUR CLIENT, EVEN IF THOSE STANDARDS DON'T REALLY MAKE SENSE.
    2) Have you considered getting yourself a Shuttle Express or Shuttle Pro controller? I'm trying to remember the manuf...I think it's Contour Design or something like that. Yeah, here it is: http://www.contourdesign.com It's a multimedia controller which plugs into the USB port and emulates a jog/shuttle control found on a professional VCR. The neat thing about it is that all of the buttons and functions are completely programmable, and you can even use it to fire off AppleScripts. I've got the Shuttle Express which has five buttons (the Shuttle Pro has "a whole bunch"), and the really cool thing about it is that because you can program it on a per-application basis or on a global basis. Even cooler is that the device focus does not necessarily follow the application focus, but it does follow the mouse pointer.
    (Okay, Dave, what the heck does all that mean?)
    What that means is that not only can you use it as a bi-directional jog/shuttle controller for QuickTime, not only can you program the buttons for, say, set-in, set-out, play-forward, loop, stop...but I'm pretty certain that you can set it up so that while you are TYPING MERRILY AWAY IN ALL CAPS IN MICROSOFT WEIRD, it can still control QuickTime Player *even though QuickTime Player is not the foreground application*.
    It isn't really a solution or a workaround to your problem, but it's a tool that might be beneficial to your workflow.
    Disclaimer: That's an unsolicited endorsement. I don't sell hardware, I have no connection whatsoever to Contour Design, and can't think of any possible way to benefit financially from giving this advice. I do own a Shuttle Express and think it's a cool little gadget.
    --Dave Althoff, Jr.

  • Iphoto shows two photo libraries with the same name, one in small letters the other in all capital letters. they both open the same library and the only one in my computer. How do delete the capital letrs one as the one in the pictures folder is in

    In my  iPhoto application when I select switch libraries It shows 2 libraries with the same name, but one has the name is in Capital letters.
    They both open the same library which is in the Pictures folder. This is the only library I can see and the name is not in capital letters?
    How do I get rid of the one in capital letters

    What is your iPhoto version?
    when I select switch libraries It shows 2 libraries with the same name, but one has the name is in Capital letters.
    In the Library Chooser Panel look for the pathes to the two duplicate libraries. You will see the location of the libraries in the path bar at the bottom of the window when you select one of the libraries. Does it show both libraries in the same folder?

  • Capital letters problem

    Hello guys,
    A user yesterday reported that he couldn't get the list of his company when he tried to search with his company's first word in the search prompt(dashboard prompt)....
    The issue is he tried searching with small letters whereas his company names were stored in database in capital letters.
    Is there a way to fix this...or a workaround to restrict users to entering only in capital letters whether or not caps is ON on the keyboard.

    Hi,
    Please refer to below links for configuring case insesitive search:
    http://obiee101.blogspot.com/2009/02/obiee-configuring-case-insensitive.html
    OBIEE Prompts Case Sensitive
    http://shivabizint.wordpress.com/2009/04/20/case-insensitive-search-using-dashboard-prompt/
    Thanks

  • My text tool is all in capital letters even though caps lock is off.

    My text tool is all in capital letters even though the caps lock button is off. Also I cannot click on the set fond style button. What seems to be the problem?

    Hi Neale --
    I am having the exact same issue, and it's a problem with any & all fonts I've tried. Of course, my keyboard's CAPS LOCK feature is OFF -- and I've tried many different font styles, nearly all of which allow for standard, non-ALL-CAPS usage.
    I'm intending to use Century Gothic for the work I'm doing right now, but it's been an ongoing issue for at least a few weeks -- but I know I never had an issue with this before recently.  (Note that I typically don't use or need the text tool for most of the photo editing work that I do w/PSE, so I'm not sure how long this has been an issue.)
    In addition, I would like to access other font-setting-related features, like kerning, character spacing, small caps, & other adjustments, etc. -- but I don't see ANYWHERE within the program (or on this forum...or online) how to adjust these relatively standard settings.
    Please help

  • TS1314 Dear all, greetings, I did not mean to offend anyone by typing all my texts in capital letters, I am just used to it and at my age (63) it is better and easier for my eyes to type all the texts in my messages in capital letters.I do apologize about

    Dear all, greetings, I did not mean to offend anyone by typing all my texts in capital letters, I am just used to it and at my age (63) it is better and easier for my eyes to type all the texts in my messages in capital letters.I do apologize about it all. I can assure you that I do respect all of you more that you maight me thinking of. i have the same difficulties in typing in small letters like yours in reading texts in CAPITAL letters.......tant pis, c' est la vie
    For web and computing experts I would like to remind them that all the peoples nowadays have the same needs (or hobbies if you wish) regarding the electronic devices, web, compouters, softwares and that sort of thing.
    If I WERE not to have technical support because of my prefiously used capital letters in me text messages, I have to confess that next time I will be more carefull about the devices producers........ I live and always learn (SOCRATES, girasko, aei didaskomenos)
    Two questions
    1. I noticed on the you tube videos about the new ipad that the main icons are more than mine (i.e. the icon of facebook and a number or others are missing)
    2. I would like to ask you to do me a favour, thanks for your patiene. Still I have not understood how (in which way, the pictures, transfered from my system or new taken by the ipad camera are uploaded directly to the FaceBook. I suppose that I will not have the same difficulties regarding the videos to both Facebook AND YoutTube. Thanks a lot for your patience with me, from now on I will be more carefull about posting messages to you referring to technical support
    Constantinos
    Athens, Greece

    Some of the apps shown in adverts / videos have been downloaded from the App Store, they don't come pre-installed e.g. the Facebook app is a free download the app store : 'official' Facebook app.
    To upload photos to Facebook you can use the above app - you can't, for example, use Safari on the iPad to upload content to sites.
    Not sure whether any apps allow you to upload videos to YouTube (I don't use the site).

  • Why capital letters change in lower after copying them from a PDF document, or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    Why capital letters change in lower after copying them from a PDF document (Made by InDesign), or otherwise, why some uppercase are in fact lowercase when I look in the Text Property in any PDF Reader.

    your home page to get into your Web site should be index.html (for Mac) or index.htm  (on PC)
    You can name it something other than index, but will be harder to find.  when you create the subjects and link to them, they can can be named anything with the html extension  Or if your using PHP end in .php. There is a Microsoft type asp or aspx but your hosting service has to set up using windows server system.
    My hosting service use a Linux server normally but can convert Windows for a Fee.  UNIX Linux has no concept of asp or aspx.
    See this : https://skitch.com/pjonescet/8mnnx/dreamweaver

Maybe you are looking for

  • Crystal Report prompts for username / pwd when deployed to Bus Obj Server

    Hi All, I'm relatively new to Crystal Reports development.  My day job is test analyst.  I'm reasonably technically proficient. PROBLEM I have created a number of Crytsal Reports which have now been deployed to an Enterprise Business Objects Report S

  • Multi Mapping 1:N Split

    Hi ,     My scenario is 1: n Split. I have created one intermediate structure (B) and doing splitting due to satisfy all business rules. A is the source is the Target. (1: N split) A  B B C A and B has the occurrence of 1. B has the occurrence of 1

  • Set up for custom encode preset in Compressor for ATV2

    using compressor 3.0.5 i would like to set up a customer encode preset for atv2. ver 3.0.5 of compressor was released prior to atv2 so i would guess the current preset is for atv1. here is a screen copy of the specs: Name: H.264 for Apple TV Descript

  • Document Print Preview

    When I use, say, FBL1N or FBL3N I get the usual display of line items. I double click on any line will go to Document line item I then click on Document overview and get the Display Document : Overview. If I then select Print preview I get the Docume

  • Importing images into Xcode

    I am a newbie to XCode 5....but when I try to import my images to the new App Icon Assets, the .jpg file is greyed out in the dialog box. I can add any info needed to help solve the problem. Thank you so much!!!