Changing to uppercase?

I'm trying to change the first letter in a name to uppercase, I dont appear to have a problem chaning the letter to uppercase but I cant change the string. any help would be much appreciated.
thanx.
String name = "james";
          //Get the first character:
          char first = name.charAt(0);
          //Make the char uppercase:
          first = Character.toUpperCase(first);
          //replace the first character:
          StringBuffer nameBuffer = new StringBuffer(name);
          nameBuffer.replace(0, 1, new String(first));
          name = nameBuffer.toString();
          System.out.println(name);

String name = "james";
char[] chars = name.toCharArray();
chars[0] = Character.toUpperCase(chars[0]);
name = new String(chars);

Similar Messages

  • 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.

  • Changes to Uppercase in own created table in SE16

    Hi Experts
    I have created an own table where I can save the data.
    These data can include both uppercase and lowercase letters.
    When I want to find something in my table in the t-code SE16 and press Enter, the letters always changes to big letters.
    Then I don't find anything because the data usually is written in small letters.
    How can I solved this? Where can I change the option to search with small letters or mix letters?
    Thanks  //  Peter B

    Hi,
    what is you domain name, is it the standard one or you have created it, as a good practice try to create new domain and then try to change there, hope that will help you out.
    cheers
    Bhavana

  • Change to Uppercase in Spreadsheet?

    Is there any way to change lowercase text to uppercase in Spreadsheet (AppleWorks 6).
    I know you can do it in WP, via the button bar, but can't see it in Spreadsheets.
    Thanks in advance.

    "I presume you mean its a case of entering a function into A1, then simply cut and paste the text in then out of it?"
    No. Anything you paste into a cell replaces what's in the cell (ie. the function).
    Enter the formula =UPPER(A1) into a different cell, such as A3.
    Paste the text into A1. The upper case version will appear in A3, and may be copied from there, then pasted elsewhere.*
    Regards,
    Barry
    *If pasted into a text environment (eg. the word processor or a text field in the database), the upper case text will be pasted. If pasted into a spreadsheet, the underlying formula will be pasted unless you use Edit > Paste special...Values only.
    B

  • How to change a value of input text box into uppercase?

    Hi all,
    In my use case I should have a text box in the jsf page and I should store the value that is entered in the text box in a database.
    The requirement is the value which user enters in the text box should get changed to Uppercase
    before getting saved in the database. Kindly help me in achieving this.
    Thanks,
    Phanindra.

    hi user,
    before asking any question.
    right place to search anything is google (the ocean).
    so the way. chris showed.
    if i understood correctly means,
    if you want change any input text into uppercase means :
    use some skinning : -
    <af:inputtext>
    contentStyle = "text-transform:uppercase;"
    </af:inputtext>
    Or
    else
    are you looking for
    while given inputtext saved into db.
    Use something like this in as vo for each and ever attribute,
    public void Desc(String value) {
    setAttributeInternal(DESC, value.toUpperCase());
    }

  • Text in Textfield to Uppercase and Send Value to Another Textfield

    Hi Everyone,
    I have used the Denes Kubicek example http://htmldb.oracle.com/pls/otn/f?p=31517:113:425753199246065::NO. I have managed to replicate this in my application but i have a small problem.
    i want the value of the text area to be sent to another textarea, like the example shows, but i also need the textarea where the end user inputs the value to be changed to uppercase aswell.
    There is an example of the exact thing i want on this example page (third text field down) but i can not combine the two into just ont text area.
    Does anyone know how i could do this?
    Regards,
    -N.S.N.O.

    Thanks Varad =)
    I was tring to do this....
    onKeyUp="f_getTextUpper('P20_COU_ISO_ID_P','P20_COU_ISO_ID_P')";"onKeyUp="f_getTextUpper('P20_COU_ISO_ID_P','P20_COU_ISO_ID_PN')";  Thanks for your help
    Regards,
    -N.S.N.O.

  • Illustrator CC Type "Change Case" keyboard shortcut not working

    In Illustrator CS6 I established a keyboard shortcut of Alt+Shift+Ctrl+= to the command Type-->Change Case-->UPPERCASE (and Alt+Shift+Ctrl+- to Type-->Change Case-->Title Case). In Illustrator CC, these two keyboard shortcuts are not working. They are displaying in the Type menu correctly, and the menu commands themselves work correctly, but the shortcuts do not work. Any ideas?

    Well, as I stated, the = worked fine in CS6 on Windows. I just tried to changing it to Alt+Shift+Ctrl+U and that one does work correctly. I would prefer that Adobe minimizes functionality regressions in new releases, even if there are conceivably workarounds that I could employ.
    Would somebody be willing to try Alt+Shift+Ctrl+= on a PC and see if they can get it to work on their system?

  • Uppercase for Address data

    Hi all,
      I am using address node to print the address and I am passing the address number (T001-ADRNR) to the address node based on the company code (T001-BUKRS) . I am getting the proper address but my issue is to print the address in uppercase letters and I have added one program node below the address node (to use FM or to use Translate- string operation) and while debugging, its giving only the address number and not the complete address, while executing the smartform formats the address and its giving the output.
    Please help me in this regard.
    Regards,
    V Kumar

    Hi
    Its true...Like If you are using an address node, then You cant change the Uppercase using Translate and Program Lines Node.
    The below solution will work only from 4.7:
    In the address node, just check if the check box "Uppercase/Lowercase Spelling" is checked, If it is checked uncheck it and then see the output. If still, you are not getting in Capitals,then the only option left is instead of using the Address Node, give all the fields which you want to display in an text element and print them.
    Regards,
    Vishwa.

  • Error while installing a patch for Mainwin 5.0.2 on Solaris 2.8

    Hi,
    I am relatively new in this field, so i apologise for any slip-ups.
    We use a Solaris 2.8-SPARC server. I was given an external drive which contained the porting software Visual Mainwin 5.0.2 and was told to install it from the drive. On checking it, i found that the entire folder structure of the software was damaged, i.e. every file of the software was changed to uppercase. UNIX being highly case-sensitive, i manually changed each and every file present in the software directory to lowercase and then ran it.
    The software ran fine, it got installed and the license server was also up. the licenses were also nicely distributed. everything was fine until i was asked to install the patch 'vmw502_sunos5_HF1.sh'. While installing i got the following output :
    # sh vmw502_sunos5_HF*
    Extracting installation package to "/tmp/mwspselfextr27624".
    Please stand by ... Done.
    =====================================================================
    Visual MainWin Patch Installation
    HF1 for VMW 5.0.2 <sunos5> 24-Jul-2003.14:01 Cycle115
    =====================================================================
    ***Error: cannot find file
    /export/home/tools/solaris/env/mainsoft/../mwver/mwversion.ini
    Something wrong with your Visual MainWin installation - aborting
    when i checked the installation directory, i found that the file 'mwversion.ini' was present inside the directory 'mwver'. I cant see any reason why the patch is not recognizing the file.
    Can anybody help?? Any kind of help will really be appreciated.
    -SD

    Hope you already tried: ls -l /export/home/tools/solaris/env/mainsoft/../mwver/mwversion.ini If ls returns the file name, try running the script under truss to find some clues.
    % truss -f -vall -rall -wall -o /tmp/mwpatch.log sh vmw502_sunos5_HF*

  • External hard drive does not switch to lowercase letters

    It seems that an external hard drive, when renamed will always be in uppercase letters. Even if I change it to lowercase, when I pull the device out and back in again, the letters change to uppercase again. Is there any way to fix this?

    That is because the drive is formatted FAT32 file system.  If you reformat the drive with  for Mac OS Journaled, it will fix the issue.  Make sure you have everything on the external backed up and use Disk Utility.

  • ChangeCase of Selected Style in InDesign CS4

    There is a certain lowercase letters applied in a character style those alone want to be change as UPPERCASE without changing the character style in InDesign CS4 (for e.g. if a group of lowercase characters (that can be any letter) applied in a character style "smallcaps". I want to change that all lowercase characters to UPPERCASE by selecting the "smallcaps" style. Please help me out how to do it in InDesign CS4.

    If you search the forum, you'll find a couple of recent discussions where I posted a script for this.
    If you want a more complete solution you might be interested in this: http://in-tools.com/wordpress/indesign/plugins/formatting-tools/formatting-tools-1-0-5
    Harbs

  • Font Issues in Acrobat X pro

    Hi All, 
    A couple of months ago we have upgraded our Acrobat applications to 9 pro and X pro before that we had used Acrobat 7&8 which is having no problem. Since we upgraded to higher versions we have been facing so many font related issues/complaints. Particularly while using TouchUp tool in pdf document so many font error messages are appeared, In some case followed that error alerts some text/character styles has changed (for example text/characters has changed from uppercase style to lower case style). And the compare documents reports also not capturing the changes/modifications exactly as Acrobat 7&8 did. Can you please give us a good suggestion regarding these issues because these issues been big headaches to us. Also please let us know the very latest versions of Acrobat will resolve this issues?
    I am expecting your valuable help/support, Please let me know you need any other inputs or clarification on this? 
    Thanks!

    Are the fonts embedded? If so, are they subset or the full font? Are the fonts on your system?
    It may be that you have updated Acrobat at the same time as other software. Note that MS changed the default font that they use in OFFICE and this may be part of the issue. Maybe these questions will at least give you a starting point for finding the problem. Also, you should be sure to update the new versions and not settle for simply the -.0 versions.

  • 10.8 Server file sharing problem

    We have a new Mac mini with 10.8 and OS X Server app. The mini has direct attached storage and will be used mainly for File Sharing. There is a repeatable problem/bug with case sensitive folder names and file sharing. For example a folder named "Editorial" is inacessible via "Connect to Server" from a client on the LAN. The same folder with the same permissions, same everthing, except it is named "editorial" works perfectly. Change the uppercase E to a lowercase e and it works. The drive is formatted with normal HFS+. It is Not HFS+ case-sensitive. I have Xserves running 10.4, 10.5, and 10.6 for file sharing and none have this problem.
    Has anyone else experieced this? Is there a fix? Other than making everything lowercase.

    Simon Slavin United Kingdom
    If you have a problem please start a thread of your own.  Don't get us confused between solving two different problems.
    Simon,
    The subject of this thread is dealing with:
    "Server 10.8 file sharing problem"
    Specifically for direct attached storage file sharing permissions issue.
    Client computers having issues with folder permissions
    These are exactly my issues as well. I was hoping to try a solution here or maybe proffer a solution if found elsewhere.  I did not realize each problem should be opened as a separate discussion....
    Sulking back into the shadow...

  • Mail not correcting as i expect it to

        I have been using mavericks for a little while not and when I am using my Mac-mail it does not correct as I expect it to.  The lower case I does not change to uppercase I when type it by itself and words I would expect to have a red underline or correct such as "it self" do nothing for me.  Is there something I have not turned on or do I have to teach my computer  like I do my iPhone.  Any help would be greatly appreciated.

    Change the regex to "\\|_\\|"A "|" has a meaning to the parser and has to be escaped. Read the Pattern class API for details.

  • Repository Creation Utility Problems

    I am having an unbelievable amount of grief with the Repository Creation Utility.
    I have an Oracle 11g database called ORCL running on a server with a static ip address.
    I cannot get past the database connection screen
    Whatever I try I get
    Unable to connect to the database using the provided details.
    Please enter a valid hostname and port or check if the listener is up and running.
    This happens weather I run rcu remotely or locally.
    I know the host and port are reachable because
    telnet 192.168.1.5 1521
    Returns the following
    Trying 192.168.1.5...
    Connected to centos5 (192.168.1.5).
    Escape character is '^]'.
    Which means that port 1521 on 192.168.1.5 is open and there's something listening on port 1521.
    This works locally and remotely
    I can connect to ORCL both locally and remotely via sqlplus.
    The listener is definitely up and running
    lsnrctl status returns the following
    LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 14-AUG-2009 21:09:36
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=centos5.home)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
    Start Date 14-AUG-2009 21:06:34
    Uptime 0 days 0 hr. 3 min. 1 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/oracle/111/network/admin/listener.ora
    Listener Log File /opt/oracle/diag/tnslsnr/centos5/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=centos5.home)(PORT=1521)))
    Services Summary...
    Service "ORCLXDB.home" has 1 instance(s).
    Instance "ORCL", status READY, has 1 handler(s) for this service...
    Service "orcl.home" has 1 instance(s).
    Instance "ORCL", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT.home" has 1 instance(s).
    Instance "ORCL", status READY, has 1 handler(s) for this service...
    The command completed successfully
    listener.ora
    # listener.ora Network Configuration File: /opt/oracle/111/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = centos5.home)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/111/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.5)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl.home)
    Here is the log entry
    2009-08-14 22:01:06.311 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil
    .jdbc.JDBCEngine::connect: Connecting to database: user:sys, role:SYSDBA, connectString:(description=(address=(host=192.168.1.5)(protocol=tcp)(port=1521))(connect_data=(service_name=ORCL.HOME)(server=dedicated)))
    2009-08-14 22:01:27.174 ERROR rcu: oracle.sysman.assistants.rcu.backend.validation.StepValidator::isConnectionStepValidated: Failed to connect database: Unable to connect to the database using the provided details.
    Please enter a valid hostname and port or check if the listener is up and running. 2009-08-14 22:01:27.174 ERROR rcu: oracle.sysman.assistants.rcu.backend.validati
    on.StepValidator::isConnectionStepValidated: SQLFatalErrorException: oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: Unable to connect to the database using the provided details.
    Please enter a valid hostname and port or check if the listener is up and running.
    I notice that the service name has been changed to uppercase even though I entered it in lowercase. I've also tried putting the name in uppercase in my tnsnames.ora. No joy.
    The rcu will connect to my xe database on another machine without any problems.
    Thanks
    =====================================
    PS
    I ended up using a 10g database. The RCU worked without difficulty.
    Edited by: tcavanna on Aug 21, 2009 10:32 PM

    You have 2 options to fix this problem.
    1. Hack the RCU user creation script, (create_user.sql). For me it was located at (/rcuHome/rcu/integration/biplatform/oracle/scripts)
    2. Borrow a shotgun and kill Oracle's DB product manager. (recommended)
    Regards
    Naeem Akhtar Khan

Maybe you are looking for

  • Found Audacity for my background noise. Can I edit my audio files in the FCPX event folder in Finder?

    I think I found the solution to my background noise problem using Audacity. But can I edit my audio files that are in FCPX Event folder in Finder? Or do I actually have to edit my project all over again to put in new audio (edited by Audacity)?

  • Vendor account and GL account

    Does SAP have a functionality that allows default GL account numbers and/or cost centers to be assigned to vendors? This would help to reduce inconsistencies in assigning account codes and cost centers to invoices if certain vendors always got charge

  • PDF Preview Handler will not open 1 file

    Hi, I have Office 2013 and Acrobat XI, the PDF Handler works fine on all my files except one. Through our online ordering, I get a confirmation email with E-Order.pdf with every confirmation, worked for a while and now gives me the "This file cannot

  • How to de-bug BSPs?

    Hi All, I'm trying to figure out how to de-bug BSP apps. If I set a breakpoint and then execute, the IE screen comes up with my content, but the Web App Builder never goes into the de-bug mode. Is there another way to do this? The reason I need this

  • SWF will not load when video is present

    I looked around to see if this problem was asked before, but I couldnt find anything. So my situation is that a small animated logo displays normally on most pages except the ones that contain videos. Any ideas what I could do? Let me know what detai