Change a char to upper Case

How can I use this "toUpperCase"
e.g.
char a = 'b';
a=toUpperCase(a);
I can't compile it.
Please help me to solve this problem..thank you...

use this:
char a = 'b';
a=Character.toUpperCase(a);
best regards

Similar Messages

  • Char to upper case

    Hello:
    The question is simple..
    How do you people convert a char to upper case?
    Regards
    pete

    this way is good enough as for me:
                   char c = chars;
                   String s = String.valueOf(c);
                   result.append("[" + s.toUpperCase() + s.toLowerCase() + "]");

  • Change string to all upper case...

    How can I make a string all upper case?
    Thanks

    var str : String = "ToUpperCase" ;
    trace( str.toUpperCase() ) ; // TOUPPERCASE
    is that what you want ?????

  • Changing field value to upper case

    I am using EditCurrentRecord. How do I convert the value that the user enters to uppercase?
    There is a setOnChange() method in HTMLInputElement. But how do I get HTMLInputElement from HTMLFieldRenderer in EditCurrentRecord?
    Thanks in advance.
    Stephen

    One central way to solve this problem is to add a method in the Entity Object attribute setter like this:
    public void setYourAttributeName( String value ) {
      // If non-null, uppercase the value before setting it.
      if (value != null) value = value.toUpperCase();
      setAttributeInternal(....);
    }Then, regardless of client, the value will be forced to uppercase.

  • Update column data to Upper Case in parent and child table

    Hi ,
    I am facing issue while updating column value to upper case in parent table and child table. How can i do that ?
    when updating parent row:
    ORA-02292: integrity constraint (XXXXXXXXXXXXXX_FK) violated - child record found
    When updatng corresponding child row:
    ORA-02291: integrity constraint (XXXXXXXXXXXXXXXX_FK) violated - parent key not found
    how can i update on both the places ?
    Regards,
    AA

    I am facing issue while updating column value to upper case in parent table and child table. How can i do that ?
    Why do you need to do that?
    That is just ONE of several questions you should answer before you start modifying your data.
    1. What is your 4 digit Oracle version? (result of SELECT * FROM V$VERSION)
    2. If both values are the same case what difference does it make what that case is?hen you don't need to alter your original data.
    3. What is the source of the column values you are using now? If you change your data to upper case it will no longer be identical to the source data.
    4. What is your plan for enforcing future values to be stored in UPPER case? Are you going to use a trigger? Have you written and tested such a trigger to see if it will even work the way you expect?
    5. Why aren't you using a surrogate key instead of a 'business' data item? You have just demonstrated one reason why surrogate keys can be useful: their actual value is NOT important.
    You should reexamine your problem and architecture and consider other alternatives.
    One alternative is to add a new 'surrogate key' column to use as the primary key. Just create a new sequence and use a trigger to populate the new column. Your current plans will require a trigger to perform the case conversion so instead of the just use the trigger to provide the value.
    If the change is being done to facilitate searching you could just add a VIRTUAL column UPPER_MY_COLUMN and index that instead. Then you could search on that new virtual column and the data values would still be identical to the original data source.

  • Converting char to upper

    How can I convert a char to upper case like you would a string?
    char code;
    String Stringcode;
    code = letter.getText().charAt(0);
    Stringcode = String.valueOf(code).toUpperCase();
    Can't I just convert the char to upper?

    public class Test {
        public static void main (String[] parameters) {
            for (char ch = 'a'; ch <= 'z'; ch ++) {
                System.out.print (Character.toUpperCase (ch));
    }

  • Convert mixed case value in colum into upper case values

    Hi All,
    I have got a table call emp and has the following colums:
    id number 10
    suename_name varchar2(20)
    given_name varchar2(20)
    position varchar2(30)
    date_hired date
    Now the values in colums are mixed case and I need to change them to upper case. I think I need to use upper function to do it.
    Could anyone help me by providing me sql/pl sql script to through each colum in emp table and change them to the upper case.
    Many Thanks
    Michael

    Hi,
    If you really want to try this using PL/SQL, then you'll have to use dynamic SQL, something like this untested code, since the table and column names are vaiable:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
         sql_txt     VARCHAR2 (4000);
    BEGIN
         FOR  r  IN ( SELECT  table_name
                   ,       column_name
                   FROM    user_tab_columns
                   WHERE   data_type = 'VARCHAR2'
              --   AND     ...  -- if you don't want all columns in all tables
         LOOP
              sql_txt := 'UPDATE "'
                   || r.table_name
                   || '" SET "'
                   || r.column_name
                   || '" = UPPER ("'
                   || r.column_name
                   || '")';
              dbms_output.put_line (sql_txt || ' = sql_txt');     -- For debugging
              -- EXECUTE IMMEDIATE sql_txt;               -- For real
         END LOOP;
    END;Dynamic SQL (here) means creating a string that contains the SQL statement to be done, then using EXECUTE IMMEDIATE to run it.
    Whenever you write dynamic SQL, it's a good idea to only display the SQL statement during the early stages of debugging. When it's displaying correctly, then you can try un-commenting the EXECUTE IMMEDIATE line.
    Edited by: Frank Kulash on Jul 19, 2009 4:40 PM
    A little more complicated, but a lot more efficient:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
         sql_txt          VARCHAR2 (4000);
    BEGIN
         FOR  r  IN ( SELECT    table_name
                   ,         column_name
                   ,         ROW_NUMBER () OVER ( PARTITION BY  table_name
                                      ORDER BY       column_name
                                    )     AS column_num
                   ,            COUNT (1)     OVER ( PARTITION BY  table_name
                                    )     AS total_column_cnt
                   FROM      user_tab_columns
                   WHERE     data_type = 'VARCHAR2'
              --   AND       ...  -- if you don't want all columns in all tables
                   ORDER BY  table_name
                   ,            column_name
         LOOP
              IF  r.column_num = 1
              THEN
                   sql_txt := 'UPDATE "'
                   || r.table_name
                   || '" SET "';
              ELSE
                   sql_txt := sql_txt || ', "';
              END IF;
              sql_txt := sql_txt ||
                   || r.column_name
                   || '" = UPPER ("'
                   || r.column_name
                   || '")';
              IF  r.column_num = r.total_column_cnt
              THEN     -- This is the last row for this table; run it
                   dbms_output.put_line (sql_txt || ' = sql_txt');     -- For debugging
                   -- EXECUTE IMMEDIATE sql_txt;               -- For real
              END IF;
         END LOOP;
    END;
    {code}
    The difference is that the first solution produces and executes a separate UPDATE statement for each column, like this:
    {code}
    UPDATE "TABLE_1" SET "COLUMN_A" = UPPER ("COLUMN_A");
    UPDATE "TABLE_1" SET "COLUMN_B" = UPPER ("COLUMN_B");
    UPDATE "TABLE_1" SET "COLUMN_C" = UPPER ("COLUMN_C");
    {code}
    but it's much more efficient to do change all the columns at once, as long as you have the row in hand.  So the second solution only creates one SQL statement per table, like this:
    {code}
    UPDATE "TABLE_1" SET "COLUMN_A" = UPPER ("COLUMN_A")
               ,   "COLUMN_B" = UPPER ("COLUMN_B")
               ,   "COLUMN_C" = UPPER ("COLUMN_C");
    {code} where every line above corresponds to a row fom the query.  The first line for every table will start with
    {code}
    UPDATE "TABLE_1" SET "but all the others will start with
    {code}
    and only on the last column for a given table will the statement be executed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Changing to Upper case?

    Is easy way to change the input character
    from keybord to upper case directly, i mean
    at the same time when the user press a key,
    the upper case show up on textField? Or i have to do that manually when cursor/mouse
    left the textField?
    Ali
    null

    cut&paste from the swing doc javax.swing.jtextfield:
    public class UpperCaseField extends JTextField {
    public UpperCaseField(int cols) {
    super(cols);
    protected Document createDefaultModel() {
    return new UpperCaseDocument();
    static class UpperCaseDocument extends PlainDocument {
    public void insertString(int offs, String str, AttributeSet a)
    throws BadLocationException {
    if (str == null) {
    return;
    char[] upper = str.toCharArray();
    for (int i = 0; i < upper.length; i) {
    upper[i] = Character.toUpperCase(upper);
    super.insertString(offs, new String(upper), a);
    null

  • I was in a Pages Doc and inadvertently had the Caps Lock on. How Can I change all the text I typed from Upper Case to Lower Case?

    I was in a Pages Doc and inadvertently had the Caps Lock on. How Can I change all the text I typed from Upper Case to Lower Case?

    Several protocols may be used.
    Here I describe two of them.
    (1) the one which I use : install and use the "Convert to Lowercase" service available in the free WordService
    (2) copy your text, paste in TextEdit and enter the Edit menu.
    I guess that you will recognize the items in your English menu.
    I apologize but I don't know the English items.
    Yvan KOENIG (VALLAURIS, France) jeudi 16 février 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • How can I change the settings to be lower case pdf not upper case PDF?

    my processing site for our business will not allow documents to be saved in upper case PDF, but I can't find where to change it to lower case pdf....which I am told will fix the issue.

    Are you talking about the file-name or the actual contents of the file?

  • Using PSE11 on MacPro, using a commercial digital template text editing stuck in upper case, cannot change to LC in any font; tried deleting layer

    Using PSE11 on MacPro, using a commercial digital template>text editing>stuck in upper case, cannot change to LC in any font; tried deleting layer

    Can you use lower case in other files? If not, then go to the far right of the tool options and click the little four-lined square and choose Reset Tool.

  • HELP!!! can't change upper case letters to lower case in document

    How do you change from upper case to lower case in a document - I have tried everything and I'm going nuts! I have a new i-mac with Leopard and have put together a document in IWorks - Pages 08 - cannot find a simple way to change cases - please help. THanks

    Download the free Word Service from Devon Tech ~ Change case plus many more options will then be available from the Services menu under the Application name in the Menu bar.
    http://www.devon-technologies.com/products/freeware/services.html

  • Typing in remote Control when changing language with key combination of Alt + Shift some time change to Upper Case and Caps Lock is off

    let me first say that this links dos not apply to my problem the first one is :
    http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/46b24b68-debf-466e-a780-66a3b999724c
    and it dos not apply because I dont use remote app, and also i able to change settings
    http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/6a0f0eda-d3f6-4cd9-91ef-a7e0b20bc799/
    this one has similar problem but he working with remote app and do not have the Upper Case and Caps Lock is off
    http://social.technet.microsoft.com/Forums/en-US/itproxpsp/thread/f978e234-2b3c-4780-9dda-bec52b25330d
    this one using XP i have it on windows 7 connecting to remote server 2008 r2
    here is the issue 
    my users remote control a terminal services farm, now when they changing language to English some  time it change to English Upper Case and caps lock is off ! then the Alt + Shift and the go back to English lower case and if they just play with
    this (i mean they just use Alt Shift over and over to try to get back to normal state when you hold shift and alt and you change to English and back to Hebrew if you hold the alt shift one more time )
    i tonic some thing strange ifi hold down first the alt and then the shift this issue happen more often
    i upload a video on this showing the problem live on my dropbox :
    https://dl.dropboxusercontent.com/u/103434771/meditowers/IMG_0245.MOV
    here is how the normal setting should be
    Alt + shift need to change to lower case English
    then Alt shift one more time will go back to Hebrew
    now if you hit on the caps lock you will be in English all the time with Upper Case

    Hi Yitzhak,
    Please refer to this post:
    www.davidbond.net/2012/10/rdp-shift-key-gets-stuck.html
    This post includes fix to this issue at the comments.
    Netanel Ben-Shushan, MCSA/E, MCTS, MCITP, Windows Expert-IT Pro MVP. IT Consultant & Trainer | Website (Hebrew): http://www.ben-shushan.net | IT Services: http://www.ben-shushan.net/services | Weblog (Hebrew): http://blogs.microsoft.co.il/blogs/netanelb
    | E-mail: [email protected]

  • How do I change sentences in lower case to upper case?

    How do I change sentences in lower case to upper case, and vice versa?

    Castleton228 wrote:
    I'm trying to make all my lower case copy into Upper Case, your advice worked, however, I cannot seem to save the change, or specifically copy and paste the new CAPITALISED text into another document.
    Any thoughts?
    Using Pages in iworks09
    Thanks for any tips
    Tim
    Tim,
    In that case, use Peter's second suggestion, "Wordservice".
    Jerry

  • Capitalization doesn't work as described. One can start with lower case and change to upper, but changing from upper case to any of the other options doesn't work. Is there a way around this or is this just a glitch that needs fixing?

    In Pages capitalization doesn't work as described. One can start with lower case and change to upper, but changing from upper case to any of the other options doesn't work. Is there a way around this or is this just a glitch that needs fixing?

    I think it does work as described, but the description is not very complete. Capitalization does not change any of the characters that you type; what it does is allow some of the lower case characters to display as capitals. If you copy the result and paste it as plain text, you'll see that the lower case characters are still there. It doesn't actually say anywhere that it can make capitals display as lower case, and it can't.
    The obvious way around this is to actually type what you want.
    The more powerful way is to install WordService from Devon Technologies which adds the functionality of Pages' capitalization menu as well a lot of other ones. WordService actually changes the character to the one displayed, and it works in most of the applications on your Mac.

Maybe you are looking for

  • Process.Start - getting different output when running command using this method than I am if I run same command in CMD prompt

    Hi Creating an application to analyze .dmp files - all working well except this odd issue If I open command prompt and enter this command:- kd -z C:\Windows\MiniDump\042414-24632-01.dmp -c "!analyze -v" Then it works and shows me all the output I nee

  • Broadband Option 3 Security

    I have been on Option3 for years and assumed I was covered by Bt Security,  Only now when I decided to check the position of my cover did I find I had no security at all.   However I got the following notice: We've detected you're using a computer ru

  • Cisco ATA 188

    I have the following problem : We fax 5 page doc and then ATA 188 is not responding ? The green led on the back is on, the red light on the top bottom doesn't go on, it is visible on the network, and it responds to a ping. This is what I got doing so

  • Deactivate sony enterprise service in security- device administrator

    I had deactivated enterprise service in device administrator and found that it become activated after a few hours. This did not happen in the previous firmware but happened after recent update. The enterprise service drains battery. Sony, kindly expl

  • Confusing situation with Time Capsule

    I have a strange situation with my Time Capsule. First of all, this all started with my Macbook and the fact that I live in a Dorm. When I first got here, I could not get the dorm's wifi to work on Mac OS X, so I used bootcamp to get on the internet